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

The ResourceRel class represents a related resource; that is, a resource that is related in some way to a parent resource. This related resource may be linked to its parent resource for some effect. More...

#include <ResourceRel.h>

Public Member Functions

 ResourceRel (VxSdk::IVxResourceRel *vxResourceRel)
 Constructor. More...
 
virtual ~ResourceRel ()
 Destructor. More...
 
 !ResourceRel ()
 Finaliser. More...
 
Results::Value Refresh ()
 Update this instances properties. More...
 

Package Functions

DataSource_GetResource ()
 

Package Attributes

VxSdk::IVxResourceRel_resourceRel
 

Properties

bool IsLinked [get, set]
 Gets or sets whether the resource is linked to its parent. More...
 
DataSource^  Resource [get]
 Gets the related resource. More...
 

Detailed Description

The ResourceRel class represents a related resource; that is, a resource that is related in some way to a parent resource. This related resource may be linked to its parent resource for some effect.

Definition at line 15 of file ResourceRel.h.

Constructor & Destructor Documentation

CPPCli::ResourceRel::ResourceRel ( VxSdk::IVxResourceRel vxResourceRel)

Constructor.

Parameters
vxResourceRelThe vx relative resource.

Definition at line 9 of file ResourceRel.cpp.

9  {
10  _resourceRel = vxResourceRel;
11 }
VxSdk::IVxResourceRel * _resourceRel
Definition: ResourceRel.h:61
virtual CPPCli::ResourceRel::~ResourceRel ( )
inlinevirtual

Destructor.

Definition at line 27 of file ResourceRel.h.

27  {
28  this->!ResourceRel();
29  }
ResourceRel(VxSdk::IVxResourceRel *vxResourceRel)
Constructor.
Definition: ResourceRel.cpp:9
CPPCli::ResourceRel::!ResourceRel ( )

Finaliser.

Definition at line 13 of file ResourceRel.cpp.

13  {
15  _resourceRel = nullptr;
16 }
virtual VxResult::Value Delete() const =0
VxSdk::IVxResourceRel * _resourceRel
Definition: ResourceRel.h:61

Member Function Documentation

CPPCli::DataSource CPPCli::ResourceRel::_GetResource ( )
package

Definition at line 23 of file ResourceRel.cpp.

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

Update this instances properties.

Returns
The Result of updating the properties.

Definition at line 19 of file ResourceRel.cpp.

19  {
21 }
virtual VxResult::Value Refresh()=0
Value
Values that represent the result of calls to the VideoXpert system.
Definition: Utils.h:21
VxSdk::IVxResourceRel * _resourceRel
Definition: ResourceRel.h:61

Member Data Documentation

VxSdk::IVxResourceRel* CPPCli::ResourceRel::_resourceRel
package

Definition at line 61 of file ResourceRel.h.

Property Documentation

bool CPPCli::ResourceRel::IsLinked
getset

Gets or sets whether the resource is linked to its parent.

true if this resource is linked to its parent, false if not linked.

Definition at line 46 of file ResourceRel.h.

DataSource^ CPPCli::ResourceRel::Resource
get

Gets the related resource.

The related resource.

Definition at line 56 of file ResourceRel.h.


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