![]() |
C++/CLI Sample
Demonstrates how to create a C++/CLI library using the VideoXpert SDK
|
The DataSource class represents a data producer in the system hosted by a device. Each DataSource provides a list of DataInterface, each of which provides a particular protocol used to transmit and control the data produced by this DataSource. More...
#include <DataSource.h>
Public Types | |
enum | Types { Types::Unknown, Types::Video, Types::Audio } |
Values that represent the particular type of a data source. More... | |
enum | States { States::Unknown, States::Offline, States::Online } |
Values that represent the operational state of a device. More... | |
Public Member Functions | |
DataSource (VxSdk::IVxDataSource *vxDataSource) | |
Constructor. More... | |
virtual | ~DataSource () |
Destructor. More... | |
!DataSource () | |
Finaliser. More... | |
CPPCli::DataSession^ | CreateMjpegStream () |
Create a new MJPEG stream. More... | |
Results::Value | Refresh () |
Refreshes this instances properties. More... | |
Package Functions | |
bool | _CanPtz () |
System::Collections::Generic::List< DataStorage^ >^ | _GetAllDataStorages () |
System::Collections::Generic::List< ResourceRel^ >^ | _GetAudioRelations () |
System::Collections::Generic::List< Clip^ >^ | _GetClips () |
System::Collections::Generic::List< DataInterface^ >^ | _GetDataInterfaces () |
System::Collections::Generic::List< DataStorage^ >^ | _GetDataStorages () |
System::Collections::Generic::List< Clip^ >^ | _GetEdgeClips () |
CPPCli::Device^ | _GetHostDevice () |
ResourceRel^ | _GetLinkedAudioRelation () |
System::Collections::Generic::List< UserInfo^ >^ | _GetMultiviewInfo () |
PtzController^ | _GetPtzController () |
System::String^ | _GetRtspEndpoint () |
System::Collections::Generic::List< ResourceRel^ >^ | _GetVideoRelations () |
Package Attributes | |
VxSdk::IVxDataSource * | _dataSource |
Properties | |
System::Collections::Generic::List< DataStorage^ >^ | AllDataStorages [get] |
Gets all data storages associated with this data source; includes edge and failover data storages. More... | |
System::Collections::Generic::List< ResourceRel^ >^ | AudioRelations [get] |
Gets all possible audio resource relations for this data source (both linked and non-linked). Each linked resource shall be considered to be associated to this data source while non-linked resources shall not be (they are available to be associated). More... | |
System::Collections::Generic::List< Clip^ >^ | Clips [get] |
Gets the clips associated with this data source. More... | |
System::Collections::Generic::List< DataInterface^ >^ | DataInterfaces [get] |
Gets all interfaces available for retrieval of data from this data source. More... | |
System::Collections::Generic::List< DataStorage^ >^ | DataStorages [get] |
Gets the data storages that this data source is associated with. More... | |
System::Collections::Generic::List< Clip^ >^ | EdgeClips [get] |
Gets the edge clips associated with this data source; may take a long time (minutes). More... | |
bool | HasLiveStream [get] |
Gets a value indicating whether the live stream is available. More... | |
bool | HasRecordedVideo [get] |
Gets a value indicating whether the recorded video is available. More... | |
CPPCli::Device^ | HostDevice [get] |
Gets the device that hosts this data source. More... | |
System::String^ | Id [get] |
Gets the unique identifier for this data source. More... | |
int | Index [get] |
Gets the zero-based index (per host device) indicating the "position" of the data source (per data source type) within the host device. More... | |
System::String^ | Ip [get] |
Gets the IP. More... | |
bool | IsCapturing [get] |
Gets a value indicating whether this data source is currently being captured by a recorder. More... | |
bool | IsPTZ [get] |
Gets a value indicating whether PTZ is enabled. More... | |
bool | IsRecording [get] |
Gets a value indicating whether the data source is currently recording. More... | |
ResourceRel^ | LinkedAudioRelation [get] |
Gets the currently linked audio resource relation for this data source, if any. More... | |
System::Collections::Generic::List< UserInfo^ >^ | MultiviewInfo [get] |
Gets the multiple viewer information for this data source. This information contains details on the current viewers of this data source. More... | |
System::String^ | Name [get, set] |
Gets or sets the friendly name. More... | |
int | Number [get, set] |
Gets or sets the number used to designate the data source. More... | |
PtzController^ | PTZController [get] |
Gets the PtzController associated with this data source. More... | |
System::String^ | RtspEndpoint [get] |
Gets the RTSP stream endpoint URI. More... | |
System::String^ | SnapshotUri [get] |
Gets the URI to retrieve the current live frame. More... | |
States | State [get] |
Gets the current operational state of the associated device. More... | |
Types | Type [get] |
Gets the type of media this data source contains. More... | |
System::Collections::Generic::List< ResourceRel^ >^ | VideoRelations [get] |
Gets all possible video resource relations for this data source (both linked and non-linked). Each linked resource shall be considered to be associated to this data source while non-linked resources shall not be (they are available to be associated). More... | |
The DataSource class represents a data producer in the system hosted by a device. Each DataSource provides a list of DataInterface, each of which provides a particular protocol used to transmit and control the data produced by this DataSource.
Definition at line 20 of file DataSource.h.
|
strong |
Values that represent the operational state of a device.
Enumerator | |
---|---|
Unknown |
An error or unknown value was returned. |
Offline |
The device is offline. |
Online |
The device is online. |
Definition at line 40 of file DataSource.h.
|
strong |
Values that represent the particular type of a data source.
Enumerator | |
---|---|
Unknown |
An error or unknown value was returned. |
Video |
A video data source. |
Audio |
An audio data source. |
Definition at line 26 of file DataSource.h.
CPPCli::DataSource::DataSource | ( | VxSdk::IVxDataSource * | vxDataSource | ) |
Constructor.
vxDataSource | The vx data source. |
Definition at line 10 of file DataSource.cpp.
|
inlinevirtual |
Destructor.
Definition at line 60 of file DataSource.h.
CPPCli::DataSource::!DataSource | ( | ) |
|
package |
Definition at line 36 of file DataSource.cpp.
|
package |
Definition at line 42 of file DataSource.cpp.
|
package |
Definition at line 66 of file DataSource.cpp.
|
package |
Definition at line 90 of file DataSource.cpp.
|
package |
Definition at line 114 of file DataSource.cpp.
|
package |
Definition at line 123 of file DataSource.cpp.
|
package |
Definition at line 147 of file DataSource.cpp.
|
package |
Definition at line 171 of file DataSource.cpp.
|
package |
Definition at line 183 of file DataSource.cpp.
|
package |
Definition at line 213 of file DataSource.cpp.
|
package |
Definition at line 237 of file DataSource.cpp.
|
package |
Definition at line 254 of file DataSource.cpp.
|
package |
Definition at line 270 of file DataSource.cpp.
CPPCli::DataSession CPPCli::DataSource::CreateMjpegStream | ( | ) |
Create a new MJPEG stream.
nullptr
if it fails, else the new MJPEG streams DataSession.Definition at line 19 of file DataSource.cpp.
CPPCli::Results::Value CPPCli::DataSource::Refresh | ( | ) |
Refreshes this instances properties.
Definition at line 32 of file DataSource.cpp.
|
package |
Definition at line 319 of file DataSource.h.
|
get |
Gets all data storages associated with this data source; includes edge and failover data storages.
A List
of all associated data storages.
Definition at line 85 of file DataSource.h.
|
get |
Gets all possible audio resource relations for this data source (both linked and non-linked). Each linked resource shall be considered to be associated to this data source while non-linked resources shall not be (they are available to be associated).
A List
of related audio resources.
Definition at line 96 of file DataSource.h.
|
get |
Gets the clips associated with this data source.
A List
of the associated clips.
Definition at line 105 of file DataSource.h.
|
get |
Gets all interfaces available for retrieval of data from this data source.
A List
of the data interfaces.
Definition at line 114 of file DataSource.h.
|
get |
Gets the data storages that this data source is associated with.
A List
of the associated data storages.
Definition at line 123 of file DataSource.h.
|
get |
Gets the edge clips associated with this data source; may take a long time (minutes).
A List
of the associated edge clips.
Definition at line 132 of file DataSource.h.
|
get |
Gets a value indicating whether the live stream is available.
true
if live is available, false
if not.
Definition at line 141 of file DataSource.h.
|
get |
Gets a value indicating whether the recorded video is available.
true
if recorded video is available, false
if not.
Definition at line 150 of file DataSource.h.
|
get |
Gets the device that hosts this data source.
The host device.
Definition at line 159 of file DataSource.h.
|
get |
Gets the unique identifier for this data source.
The unique identifier.
Definition at line 168 of file DataSource.h.
|
get |
Gets the zero-based index (per host device) indicating the "position" of the data source (per data source type) within the host device.
The data source index.
Definition at line 178 of file DataSource.h.
|
get |
|
get |
Gets a value indicating whether this data source is currently being captured by a recorder.
true
if capturing, false
if not.
Definition at line 196 of file DataSource.h.
|
get |
Gets a value indicating whether PTZ is enabled.
true
if PTZ is enabled, false
if not.
Definition at line 205 of file DataSource.h.
|
get |
Gets a value indicating whether the data source is currently recording.
true
if recording, false
if not.
Definition at line 214 of file DataSource.h.
|
get |
Gets the currently linked audio resource relation for this data source, if any.
The linked audio resource if available, otherwise nullptr
.
Definition at line 223 of file DataSource.h.
|
get |
Gets the multiple viewer information for this data source. This information contains details on the current viewers of this data source.
A List
of user information for all viewers of this data source.
Definition at line 233 of file DataSource.h.
|
getset |
|
getset |
Gets or sets the number used to designate the data source.
The data source number.
Definition at line 256 of file DataSource.h.
|
get |
Gets the PtzController associated with this data source.
nullptr
if PTZ is not supported on the device, else the PtzController.
Definition at line 266 of file DataSource.h.
|
get |
|
get |
Gets the URI to retrieve the current live frame.
The JPEG URI.
Definition at line 284 of file DataSource.h.
|
get |
Gets the current operational state of the associated device.
The current device state.
Definition at line 293 of file DataSource.h.
|
get |
Gets the type of media this data source contains.
The media type.
Definition at line 302 of file DataSource.h.
|
get |
Gets all possible video resource relations for this data source (both linked and non-linked). Each linked resource shall be considered to be associated to this data source while non-linked resources shall not be (they are available to be associated).
A List
of related video resources.
Definition at line 313 of file DataSource.h.