This plugin sample delete a selected bookmark from the current system.
More...
#include <DeleteBookmark.h>
This plugin sample delete a selected bookmark from the current system.
Definition at line 12 of file DeleteBookmark.h.
Inherits CppSamples::Common::Plugin.
CppSamples::Bookmarks::DeleteBookmark::DeleteBookmark |
( |
const std::string |
description | ) |
|
|
inline |
Definition at line 14 of file DeleteBookmark.h.
Plugin is the abstract class which can be a menu item and/or a sample. Every sample and menu item mus...
CppSamples::Bookmarks::DeleteBookmark::~DeleteBookmark |
( |
| ) |
|
|
inline |
Get a collection of bookmarks from the given VideoExpert system.
- Parameters
-
vxSystem | Pointer to the VideoExpert system. |
- Returns
- A collection of bookmarks.
Definition at line 48 of file DeleteBookmark.cpp.
51 if (result == VxResult::kInsufficientSize) {
virtual VxResult::Value GetBookmarks(VxCollection< IVxBookmark ** > &bookmarkCollection) const =0
Prints the given collection of bookmarks to the screen.
- Parameters
-
bookmarkCollection | Collection of bookmarks. |
Definition at line 62 of file DeleteBookmark.cpp.
64 cout << bookmarkCollection.
collectionSize <<
" bookmarks found." <<
"\n";
68 cout <<
"------------------------------------------------------------------------------------------";
72 cout <<
"\n" << (i + 1);
73 cout <<
"\t" << bookmark->
id;
74 cout <<
"\t" << bookmark->
time;
77 cout <<
"\n------------------------------------------------------------------------------------------\n";
Delete a selected bookmark from the current system.
- Parameters
-
dataModel | Instance of data model. |
Implements CppSamples::Common::Plugin.
Definition at line 13 of file DeleteBookmark.cpp.
26 if (result == VxResult::kOK)
27 cout <<
"\n" <<
"Bookmark deleted succesfully.\n";
29 cout <<
"\n" <<
"Failed to delete bookmark!!\n";
static VxSdk::VxCollection< VxSdk::IVxBookmark ** > GetBookmarks(VxSdk::IVxSystem *vxSystem)
Get a collection of bookmarks from the given VideoExpert system.
int SelectBookmarkIndex(VxSdk::VxCollection< VxSdk::IVxBookmark ** > &bookmarks)
Select a bookmark from the given collection by user input.
static void PrintBookmarks(VxSdk::VxCollection< VxSdk::IVxBookmark ** > bookmarkCollection)
Prints the given collection of bookmarks to the screen.
VxSdk::IVxSystem * VxSystem
Represents a VideoXpert system and allows the user to manage the system and devices.
virtual VxResult::Value DeleteBookmark() const =0
Plugin * GetParent() const
Gets the reference to the parent of this plugin.
Select a bookmark from the given collection by user input.
- Parameters
-
bookmarks | Collection of bookmark. |
- Returns
- Index of the selected bookmark in the given collection.
Definition at line 85 of file DeleteBookmark.cpp.
87 cout <<
"\n" <<
"Enter bookmark number [1-" << bookmarks.
collectionSize <<
"] : ";
88 int index = Utility::ReadInt();
94 cout <<
"\n" <<
"Invalid Option !!!";
96 cout <<
"\n" <<
"Enter 0 to go back.";
The documentation for this class was generated from the following files: