This plugin sample delete a selected schedule from the current system.
More...
#include <DeleteSchedule.h>
This plugin sample delete a selected schedule from the current system.
Definition at line 12 of file DeleteSchedule.h.
Inherits CppSamples::Common::Plugin.
CppSamples::Schedules::DeleteSchedule::DeleteSchedule |
( |
const std::string |
description | ) |
|
|
inline |
Definition at line 14 of file DeleteSchedule.h.
Plugin is the abstract class which can be a menu item and/or a sample. Every sample and menu item mus...
CppSamples::Schedules::DeleteSchedule::~DeleteSchedule |
( |
| ) |
|
|
inline |
Get a collection of schedules from the given VideoExpert system.
- Parameters
-
vxSystem | Pointer to the VideoExpert system. |
- Returns
- A collection of schedules.
Definition at line 45 of file DeleteSchedule.cpp.
48 if (result == VxResult::kInsufficientSize) {
virtual VxResult::Value GetSchedules(VxCollection< IVxSchedule ** > &scheduleCollection) const =0
Prints the given collection of schedules to the screen.
- Parameters
-
scheduleCollection | Collection of schedules. |
Definition at line 59 of file DeleteSchedule.cpp.
61 cout << scheduleCollection.
collectionSize <<
" schedules found." <<
"\n";
65 cout <<
"---------------------------------------------------------------------------------------------";
69 cout <<
"\n" << (i + 1);
70 cout <<
"\t" << schedule->
id;
71 cout <<
"\t" << schedule->
name;
73 cout <<
"\n---------------------------------------------------------------------------------------------\n";
Delete a selected schedule from the current system.
- Parameters
-
dataModel | Instance of data model. |
Implements CppSamples::Common::Plugin.
Definition at line 13 of file DeleteSchedule.cpp.
14 Utility::ClearScreen();
24 if (result == VxResult::kOK)
25 cout <<
"\n" <<
"Schedule deleted succesfully.\n";
27 cout <<
"\n" <<
"Failed to delete schedule!!\n";
VxSdk::IVxSystem * VxSystem
Represents a VideoXpert system and allows the user to manage the system and devices.
int SelectScheduleIndex(VxSdk::VxCollection< VxSdk::IVxSchedule ** > &schedules)
Select a schedule from the given collection by user input.
virtual VxResult::Value DeleteSchedule() const =0
Plugin * GetParent() const
Gets the reference to the parent of this plugin.
static VxSdk::VxCollection< VxSdk::IVxSchedule ** > GetSchedules(VxSdk::IVxSystem *vxSystem)
Get a collection of schedules from the given VideoExpert system.
static void PrintSchedules(VxSdk::VxCollection< VxSdk::IVxSchedule ** > scheduleCollection)
Prints the given collection of schedules to the screen.
Select a schedule from the given collection by user input.
- Parameters
-
schedules | Collection of schedule. |
- Returns
- Index of the selected schedule in the given collection.
Definition at line 81 of file DeleteSchedule.cpp.
83 cout <<
"\n" <<
"Enter schedule number [1-" << schedules.
collectionSize <<
"] : ";
84 int index = Utility::ReadInt();
90 cout <<
"\n" <<
"Invalid Option !!!";
92 cout <<
"\n" <<
"Enter 0 to go back.";
The documentation for this class was generated from the following files: