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

The QuickReport class represents a quick system health report. More...

#include <QuickReport.h>

Public Types

enum  ReportCreationStatus {
  ReportCreationStatus::Unknown,
  ReportCreationStatus::InProgress,
  ReportCreationStatus::Failed,
  ReportCreationStatus::Successful
}
 Values that represent status of creating a quick report. More...
 

Public Member Functions

 QuickReport (VxSdk::IVxQuickReport *vxQuickReport)
 Constructor. More...
 
virtual ~QuickReport ()
 Destructor. More...
 
 !QuickReport ()
 Finaliser. More...
 

Package Functions

System::String^ _GetQuickReportEndpoint ()
 
ReportCreationStatus _GetStatus ()
 

Package Attributes

VxSdk::IVxQuickReport_report
 

Properties

System::String^  QuickReportEndpoint [get]
 Gets the URI to the download location of the quick report. The endpoint will only be available if the VideoXpert system has completed generating the report. More...
 
ReportCreationStatus Status [get]
 Gets the current status of generating the quick report. More...
 

Detailed Description

The QuickReport class represents a quick system health report.

Definition at line 13 of file QuickReport.h.

Member Enumeration Documentation

Values that represent status of creating a quick report.

Enumerator
Unknown 

An error or unknown value was returned.

InProgress 

The report creation is in progress.

Failed 

The report failed to be created.

Successful 

The report has successfully been created.

Definition at line 19 of file QuickReport.h.

19  {
21  Unknown,
23  InProgress,
25  Failed,
27  Successful
28  };

Constructor & Destructor Documentation

CPPCli::QuickReport::QuickReport ( VxSdk::IVxQuickReport vxQuickReport)

Constructor.

Implements the clip class.

Parameters
vxQuickReportThe vx quick report.

Definition at line 6 of file QuickReport.cpp.

6  {
7  _report = vxQuickReport;
8 }
VxSdk::IVxQuickReport * _report
Definition: QuickReport.h:68
virtual CPPCli::QuickReport::~QuickReport ( )
inlinevirtual

Destructor.

Definition at line 39 of file QuickReport.h.

39  {
40  this->!QuickReport();
41  }
QuickReport(VxSdk::IVxQuickReport *vxQuickReport)
Constructor.
Definition: QuickReport.cpp:6
CPPCli::QuickReport::!QuickReport ( )

Finaliser.

Definition at line 10 of file QuickReport.cpp.

10  {
11  _report->Delete();
12  _report = nullptr;
13 }
virtual VxResult::Value Delete() const =0
VxSdk::IVxQuickReport * _report
Definition: QuickReport.h:68

Member Function Documentation

System::String CPPCli::QuickReport::_GetQuickReportEndpoint ( )
package

Definition at line 15 of file QuickReport.cpp.

15  {
16  char* reportEndpoint = nullptr;
17  int size = 0;
18 
19  // If the quick report endpoint is not available on the system the result will return VxSdk::VxResult::kActionUnavailable,
20  // otherwise VxSdk::VxResult::kInsufficientSize
21  VxSdk::VxResult::Value result = _report->GetQuickReportEndpoint(reportEndpoint, size);
22  if (result == VxSdk::VxResult::kInsufficientSize) {
23  // Allocate enough space for reportEndpoint
24  reportEndpoint = new char[size];
25  // The result should now be kOK since we have allocated enough space
26  _report->GetQuickReportEndpoint(reportEndpoint, size);
27  }
28  return gcnew System::String(reportEndpoint);
29 }
virtual VxResult::Value GetQuickReportEndpoint(char *endpoint, int &size)=0
VxSdk::IVxQuickReport * _report
Definition: QuickReport.h:68
CPPCli::QuickReport::ReportCreationStatus CPPCli::QuickReport::_GetStatus ( )
package

Definition at line 31 of file QuickReport.cpp.

31  {
32  // Get the status of the report
34  VxSdk::VxResult::Value result = _report->GetStatus(status);
35  // Return the status if GetStatus was successful
36  if (result == VxSdk::VxResult::kOK)
38 
40 }
An error or unknown value was returned.
ReportCreationStatus
Values that represent status of creating a quick report.
Definition: QuickReport.h:19
virtual VxResult::Value GetStatus(VxReportCreationStatus::Value &status)=0
VxSdk::IVxQuickReport * _report
Definition: QuickReport.h:68

Member Data Documentation

VxSdk::IVxQuickReport* CPPCli::QuickReport::_report
package

Definition at line 68 of file QuickReport.h.

Property Documentation

System:: String^ CPPCli::QuickReport::QuickReportEndpoint
get

Gets the URI to the download location of the quick report. The endpoint will only be available if the VideoXpert system has completed generating the report.

Returns
The quick report endpoint, if available.

Definition at line 53 of file QuickReport.h.

ReportCreationStatus CPPCli::QuickReport::Status
get

Gets the current status of generating the quick report.

The current quick report creation status.

Definition at line 62 of file QuickReport.h.


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