C++/CLI Sample
Demonstrates how to create a C++/CLI library using the VideoXpert SDK
CPPCli::Bookmark Class Reference

The Bookmark class represents a point in time of interest with reference to a particular data source. More...

#include <Bookmark.h>

Public Member Functions

 Bookmark (VxSdk::IVxBookmark *vxBookmark)
 Constructor. More...
 
virtual ~Bookmark ()
 Destructor. More...
 
 !Bookmark ()
 Finaliser. More...
 
Results::Value Refresh ()
 Refreshes this instances properties. More...
 

Package Functions

CPPCli::DataSource_GetDataSource ()
 

Package Attributes

VxSdk::IVxBookmark_bookmark
 

Properties

System::String^  Description [get, set]
 Gets or sets the friendly description of the bookmark. More...
 
System::String^  Id [get]
 Gets the unique bookmark identifier. More...
 
System::String^  Name [get, set]
 Gets or sets the friendly name. More...
 
System::DateTime Time [get]
 Gets the date and time at which the point of interest occurred. More...
 
CPPCli::DataSource^  DataSource [get]
 Gets the data source associated with this bookmark. More...
 

Detailed Description

The Bookmark class represents a point in time of interest with reference to a particular data source.

Definition at line 14 of file Bookmark.h.

Constructor & Destructor Documentation

CPPCli::Bookmark::Bookmark ( VxSdk::IVxBookmark vxBookmark)

Constructor.

Parameters
vxBookmarkThe vx bookmark.

Definition at line 8 of file Bookmark.cpp.

8  {
9  _bookmark = vxBookmark;
10 }
VxSdk::IVxBookmark * _bookmark
Definition: Bookmark.h:97
virtual CPPCli::Bookmark::~Bookmark ( )
inlinevirtual

Destructor.

Definition at line 26 of file Bookmark.h.

26  {
27  this->!Bookmark();
28  }
Bookmark(VxSdk::IVxBookmark *vxBookmark)
Constructor.
Definition: Bookmark.cpp:8
CPPCli::Bookmark::!Bookmark ( )

Finaliser.

Definition at line 12 of file Bookmark.cpp.

12  {
13  _bookmark->Delete();
14  _bookmark = nullptr;
15 }
virtual VxResult::Value Delete() const =0
VxSdk::IVxBookmark * _bookmark
Definition: Bookmark.h:97

Member Function Documentation

CPPCli::DataSource CPPCli::Bookmark::_GetDataSource ( )
package

Definition at line 21 of file Bookmark.cpp.

21  {
22  // Get the data source
23  VxSdk::IVxDataSource* dataSource = nullptr;
24  VxSdk::VxResult::Value result = _bookmark->GetDataSource(dataSource);
25 
26  // Return the data source if GetDataSource was successful
27  if (result == VxSdk::VxResult::kOK)
28  return gcnew CPPCli::DataSource(dataSource);
29 
30  return nullptr;
31 }
virtual VxResult::Value GetDataSource(IVxDataSource *&dataSource) const =0
The DataSource class represents a data producer in the system hosted by a device. Each DataSource pro...
Definition: DataSource.h:20
VxSdk::IVxBookmark * _bookmark
Definition: Bookmark.h:97
CPPCli::Results::Value CPPCli::Bookmark::Refresh ( )

Refreshes this instances properties.

Returns
The Result of updating the properties.

Definition at line 17 of file Bookmark.cpp.

17  {
19 }
Value
Values that represent the result of calls to the VideoXpert system.
Definition: Utils.h:21
virtual VxResult::Value Refresh()=0
VxSdk::IVxBookmark * _bookmark
Definition: Bookmark.h:97

Member Data Documentation

VxSdk::IVxBookmark* CPPCli::Bookmark::_bookmark
package

Definition at line 97 of file Bookmark.h.

Property Documentation

CPPCli:: DataSource^ CPPCli::Bookmark::DataSource
get

Gets the data source associated with this bookmark.

The associated data source.

Definition at line 91 of file Bookmark.h.

System:: String^ CPPCli::Bookmark::Description
getset

Gets or sets the friendly description of the bookmark.

The friendly description.

Definition at line 45 of file Bookmark.h.

System:: String^ CPPCli::Bookmark::Id
get

Gets the unique bookmark identifier.

The unique identifier.

Definition at line 59 of file Bookmark.h.

System:: String^ CPPCli::Bookmark::Name
getset

Gets or sets the friendly name.

The friendly name.

Definition at line 68 of file Bookmark.h.

System:: DateTime CPPCli::Bookmark::Time
get

Gets the date and time at which the point of interest occurred.

A default DateTime if it fails, else the DateTime at which the point of interest occurred.

Definition at line 82 of file Bookmark.h.


The documentation for this class was generated from the following files: