This plugin sample print all available situations in the current system.
More...
#include <DisplaySituations.h>
This plugin sample print all available situations in the current system.
Definition at line 12 of file DisplaySituations.h.
Inherits CppSamples::Common::Plugin.
CppSamples::Events::DisplaySituations::DisplaySituations |
( |
const std::string |
description | ) |
|
|
inline |
Definition at line 14 of file DisplaySituations.h.
Plugin is the abstract class which can be a menu item and/or a sample. Every sample and menu item mus...
CppSamples::Events::DisplaySituations::~DisplaySituations |
( |
| ) |
|
|
inline |
void CppSamples::Events::DisplaySituations::Display |
( |
VxSdk::IVxSystem * |
vxSystem | ) |
|
|
private |
Print all available situations in the current system.
Menu function for displaying situations available in a system
- Parameters
-
vxSystem | Pointer to the VideoExpert system. |
- Parameters
-
Definition at line 26 of file DisplaySituations.cpp.
28 cout <<
"\n\n" <<
"Fetching situations from system..Please wait..\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.
Print the given collection of situations on screen
Method for displaying situation details
- Parameters
-
situations | Collection of Situations to be printed. |
- Parameters
-
situations | Situations list to iterate |
Definition at line 56 of file DisplaySituations.cpp.
63 cout << setfill(
' ') <<
" INDEX " << setw(60) << left <<
" TYPE" <<
"\n";
64 cout <<
"\n--------------------------------------------------\n";
70 cout << setfill(
' ') <<
"\n\t" << index + 1 <<
"\t" << left << setw(60) << left << situation->
type;
74 cout <<
"\n--------------------------------------------------\n";
77 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 37 of file DisplaySituations.cpp.
42 if (result == VxResult::kInsufficientSize) {
virtual VxResult::Value GetSituations(VxCollection< IVxSituation ** > &situationCollection) const =0
Print all available situations in the current system.
- Parameters
-
dataModel | Instance of data model. |
Implements CppSamples::Common::Plugin.
Definition at line 10 of file DisplaySituations.cpp.
void Display(VxSdk::IVxSystem *vxSystem)
Print all available situations in 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: