This plugin sample delete a particular situation specified by user from the current system.
More...
#include <DeleteSituation.h>
This plugin sample delete a particular situation specified by user from the current system.
Definition at line 12 of file DeleteSituation.h.
Inherits CppSamples::Common::Plugin.
CppSamples::Events::DeleteSituation::DeleteSituation |
( |
const std::string |
description | ) |
|
|
inline |
Definition at line 14 of file DeleteSituation.h.
Plugin is the abstract class which can be a menu item and/or a sample. Every sample and menu item mus...
CppSamples::Events::DeleteSituation::~DeleteSituation |
( |
| ) |
|
|
inline |
Delete a particular situation specified by user from the current system.
Menu function for deleting situation from server
- Parameters
-
vxSystem | Pointer to the VideoExpert system. |
- Parameters
-
Definition at line 26 of file DeleteSituation.cpp.
28 cout <<
"\n" <<
"Fetching situations from system..Please wait..\n";
33 cout <<
"\n" <<
"Enter the index of situation to delete [1-" << situations.
collectionSize <<
"] : ";
34 int situationToDelete = Utility::ReadInt();
37 if (situationToDelete < 1 || situationToDelete > situations.
collectionSize)
42 cout <<
"\n" <<
"Situation selected for delete is:" << situation->
type <<
"\n";
46 if (result == VxResult::kOK)
47 cout <<
"\n" <<
"Situation deleted succesfully.\n";
49 cout <<
"\n" <<
"Failed to delete situation.\n";
void DisplaySituationDetailsOnScreen(VxSdk::VxCollection< VxSdk::IVxSituation ** > situations)
Print the given collection of situations on screen.
VxSdk::VxCollection< VxSdk::IVxSituation ** > GetSituations(VxSdk::IVxSystem *vxSystem)
Get a collection of situations from the given VideoExpert system.
virtual VxResult::Value DeleteSituation() const =0
Print the given collection of situations on screen.
- Parameters
-
situations | Collection of Situations to be printed. |
- Parameters
-
situations | Situations list to iterate |
Definition at line 74 of file DeleteSituation.cpp.
79 cout << setfill(
' ') <<
" INDEX " << setw(60) << left <<
" TYPE" <<
"\n";
80 cout <<
"\n--------------------------------------------------\n";
85 cout << setfill(
' ') <<
"\n\t" << index + 1 <<
"\t" << left << setw(60) << left << situation->
type;
88 cout <<
"\n--------------------------------------------------\n";
91 cout <<
"No situations found!!\n";
Get a collection of situations from the given VideoExpert system.
- Parameters
-
vxSystem | Pointer to the VideoExpert system. |
- Returns
- A collection of situations.
Definition at line 56 of file DeleteSituation.cpp.
60 if (result == VxResult::kInsufficientSize) {
virtual VxResult::Value GetSituations(VxCollection< IVxSituation ** > &situationCollection) const =0
Delete a particular situation specified by user from the current system.
- Parameters
-
dataModel | Instance of data model. |
Implements CppSamples::Common::Plugin.
Definition at line 11 of file DeleteSituation.cpp.
void Delete(VxSdk::IVxSystem *vxSystem)
Delete a particular situation specified by user from the current system.
VxSdk::IVxSystem * VxSystem
Represents a VideoXpert system and allows the user to manage the system and devices.
Plugin * GetParent() const
Gets the reference to the parent of this plugin.
The documentation for this class was generated from the following files: