This plugin sample delete a selected dataObject from the current system.
More...
#include <DeleteDataObject.h>
This plugin sample delete a selected dataObject from the current system.
Definition at line 12 of file DeleteDataObject.h.
Inherits CppSamples::Common::Plugin.
CppSamples::DataObjects::DeleteDataObject::DeleteDataObject |
( |
const std::string |
description | ) |
|
|
inline |
Definition at line 14 of file DeleteDataObject.h.
Plugin is the abstract class which can be a menu item and/or a sample. Every sample and menu item mus...
CppSamples::DataObjects::DeleteDataObject::~DeleteDataObject |
( |
| ) |
|
|
inline |
Get a collection of dataObjects from the given VideoExpert system.
- Parameters
-
vxSystem | Pointer to the VideoExpert system. |
- Returns
- A collection of dataObjects.
Definition at line 47 of file DeleteDataObject.cpp.
50 if (result == VxResult::kInsufficientSize) {
virtual VxResult::Value GetDataObjects(VxCollection< IVxDataObject ** > &dataObjectCollection) const =0
Prints the given collection of dataObjects to the screen.
- Parameters
-
dataObjectCollection | Collection of dataObjects. |
Definition at line 61 of file DeleteDataObject.cpp.
62 cout << dataObjectCollection.
collectionSize <<
" dataObjects found." <<
"\n";
66 cout <<
"---------------------------------------------------------------------------------------------";
70 cout <<
"\n" << (i + 1);
71 cout <<
"\t" << dataObject->
id;
72 cout <<
"\t" << dataObject->
owner;
75 cout <<
"\n---------------------------------------------------------------------------------------------\n";
Delete a selected dataObject from the current system.
- Parameters
-
dataModel | Instance of data model. |
Implements CppSamples::Common::Plugin.
Definition at line 13 of file DeleteDataObject.cpp.
14 Utility::ClearScreen();
26 if (result == VxResult::kOK)
27 cout <<
"\n" <<
"DataObject deleted succesfully.\n";
29 cout <<
"\n" <<
"Failed to delete dataObject!!\n";
static void PrintDataObjects(VxSdk::VxCollection< VxSdk::IVxDataObject ** > dataObjectCollection)
Prints the given collection of dataObjects to the screen.
VxSdk::IVxSystem * VxSystem
Represents a VideoXpert system and allows the user to manage the system and devices.
virtual VxResult::Value DeleteDataObject() const =0
Plugin * GetParent() const
Gets the reference to the parent of this plugin.
int SelectDataObjectIndex(VxSdk::VxCollection< VxSdk::IVxDataObject ** > &dataObjects)
Select a dataObject from the given collection by user input.
static VxSdk::VxCollection< VxSdk::IVxDataObject ** > GetDataObjects(VxSdk::IVxSystem *vxSystem)
Get a collection of dataObjects from the given VideoExpert system.
Select a dataObject from the given collection by user input.
- Parameters
-
dataObjects | Collection of dataObject. |
- Returns
- Index of the selected dataObject in the given collection.
Definition at line 83 of file DeleteDataObject.cpp.
85 cout <<
"\n" <<
"Enter dataObject number [1-" << dataObjects.
collectionSize <<
"] : ";
86 int index = Utility::ReadInt();
92 cout <<
"\n" <<
"Invalid Option !!!";
94 cout <<
"\n" <<
"Enter 0 to go back.";
The documentation for this class was generated from the following files: