This plugin sample deletes an export from the current system.
More...
#include <DeleteExport.h>
This plugin sample deletes an export from the current system.
Definition at line 12 of file DeleteExport.h.
Inherits CppSamples::Common::Plugin.
CppSamples::Exports::DeleteExport::DeleteExport |
( |
const std::string |
description | ) |
|
|
inline |
Definition at line 14 of file DeleteExport.h.
Plugin is the abstract class which can be a menu item and/or a sample. Every sample and menu item mus...
CppSamples::Exports::DeleteExport::~DeleteExport |
( |
| ) |
|
|
inline |
void CppSamples::Exports::DeleteExport::DeleteSingleExport |
( |
VxSdk::IVxSystem * |
vxSystem | ) |
|
|
staticprotected |
Deletes an export from the current system.
- Parameters
-
vxSystem | Pointer to the VideoExpert system. |
Definition at line 22 of file DeleteExport.cpp.
32 cout <<
"\n" <<
"Enter index of export to delete [1-" << exports.
collectionSize <<
"] : ";
33 int exportIndex = Utility::ReadInt();
41 cout <<
"\n" <<
"Name of the export you selected for delete : " << vxExport->
name;
45 if (result == VxResult::kOK)
46 cout <<
"\n" <<
"Export deleted succesfully.\n";
48 cout <<
"\n" <<
"Failed to delete export!!\n";
static VxSdk::VxCollection< VxSdk::IVxExport ** > GetExports(VxSdk::IVxSystem *vxSystem)
Get a collection of exports from the given VideoExpert system.
static void DisplayExportDetailsOnScreen(VxSdk::VxCollection< VxSdk::IVxExport ** > exportCollection)
Prints the given collection of exports to the screen.
virtual VxResult::Value DeleteExport() const =0
Prints the given collection of exports to the screen.
- Parameters
-
exportCollection | Collection of exports. |
Definition at line 55 of file DeleteExport.cpp.
56 cout <<
"\n" << exportCollection.
collectionSize <<
" exports found.";
61 cout <<
"\n-----------------------------------------------------------------";
67 string expStatusInString =
"U";
69 case VxExportStatus::Value::kExporting:
70 expStatusInString =
"E";
72 case VxExportStatus::Value::kSuccessful:
73 expStatusInString =
"S";
75 case VxExportStatus::Value::kFailed:
76 expStatusInString =
"F";
78 case VxExportStatus::Value::kPending:
79 expStatusInString =
"P";
81 case VxExportStatus::Value::kUnknown:
86 cout <<
"\n\t" << (i + 1) <<
"\t" << vxExport->
name <<
"\t" << expStatusInString;
90 cout <<
"\n-----------------------------------------------------------------";
91 cout <<
"\n Status: E-Exporting S-Successful F-Failed P-Pending U-Unknown\n";
VxExportStatus::Value status
Get a collection of exports from the given VideoExpert system.
- Parameters
-
vxSystem | Pointer to the VideoExpert system. |
- Returns
- A collection of exports.
Definition at line 95 of file DeleteExport.cpp.
96 cout <<
"\n\n" <<
"Fetching exports from system. Please wait...\n";
100 if (result == VxResult::kInsufficientSize) {
virtual VxResult::Value GetExports(VxCollection< IVxExport ** > &exportCollection) const =0
Deletes an export from the current system.
- Parameters
-
dataModel | Instance of data model. |
Implements CppSamples::Common::Plugin.
Definition at line 10 of file DeleteExport.cpp.
VxSdk::IVxSystem * VxSystem
Represents a VideoXpert system and allows the user to manage the system and devices.
static void DeleteSingleExport(VxSdk::IVxSystem *vxSystem)
Deletes an export from the current system.
Plugin * GetParent() const
Gets the reference to the parent of this plugin.
The documentation for this class was generated from the following files: