Generates a standard support log (register log) for any NTV2 device attached to the host. To write the log into a file, open a std::ofstream, then stream this object into it.
More...
#include <ntv2supportlogger.h>
Generates a standard support log (register log) for any NTV2 device attached to the host. To write the log into a file, open a std::ofstream, then stream this object into it.
Definition at line 30 of file ntv2supportlogger.h.
◆ CNTV2SupportLogger() [1/2]
Construct from CNTV2Card instance.
- Parameters
-
[in] | card | Specifies the CNTV2Card instance of the device to be logged. The instance should already be open. |
[in] | sections | Optionally specifies which sections to include in the log. Defaults to all sections. |
Definition at line 309 of file ntv2supportlogger.cpp.
◆ CNTV2SupportLogger() [2/2]
Default constructor.
- Parameters
-
[in] | cardIndex | Optionally specifies the zero-based index of the CNTV2Card device to be logged. Defaults to zero, the first device found. |
[in] | sections | Optionally specifies which sections to include in the log. Defaults to all sections. |
Definition at line 316 of file ntv2supportlogger.cpp.
◆ ~CNTV2SupportLogger()
CNTV2SupportLogger::~CNTV2SupportLogger |
( |
| ) |
|
|
virtual |
◆ AddFooter()
void CNTV2SupportLogger::AddFooter |
( |
const std::string & |
sectionName, |
|
|
const std::string & |
sectionData |
|
) |
| |
|
virtual |
Adds footer text to my log.
- Parameters
-
[in] | sectionName | Specifies the section name. |
[in] | sectionData | Specifies the footer text. |
Definition at line 371 of file ntv2supportlogger.cpp.
◆ AddHeader()
void CNTV2SupportLogger::AddHeader |
( |
const std::string & |
sectionName, |
|
|
const std::string & |
sectionData |
|
) |
| |
|
virtual |
Adds header text to my log.
- Parameters
-
[in] | sectionName | Specifies the section name. |
[in] | sectionData | Specifies the header text. |
Definition at line 363 of file ntv2supportlogger.cpp.
◆ AppendToSection()
void CNTV2SupportLogger::AppendToSection |
( |
uint32_t |
section, |
|
|
const std::string & |
sectionData |
|
) |
| |
|
virtual |
Appends arbitrary string data to my support log, after a given section.
- Parameters
-
[in] | section | Specifies the NTV2SupportLoggerSection to append. |
[in] | sectionData | Specifies the text data to append. |
Definition at line 349 of file ntv2supportlogger.cpp.
◆ DumpDeviceSDRAM()
bool CNTV2SupportLogger::DumpDeviceSDRAM |
( |
CNTV2Card & |
inDevice, |
|
|
const std::string & |
inFilePath, |
|
|
std::ostream & |
msgStream |
|
) |
| |
|
static |
◆ InventLogFilePathAndName()
string CNTV2SupportLogger::InventLogFilePathAndName |
( |
CNTV2Card & |
inDevice, |
|
|
std::string |
inPrefix = "aja_supportlog" , |
|
|
std::string |
inExtension = "log" |
|
) |
| |
|
static |
◆ LoadFromLog()
bool CNTV2SupportLogger::LoadFromLog |
( |
const std::string & |
inLogFilePath, |
|
|
const bool |
bForceLoad |
|
) |
| |
|
virtual |
◆ PrependToSection()
void CNTV2SupportLogger::PrependToSection |
( |
uint32_t |
section, |
|
|
const std::string & |
sectionData |
|
) |
| |
|
virtual |
Prepends arbitrary string data to my support log, ahead of a given section.
- Parameters
-
[in] | section | Specifies the NTV2SupportLoggerSection to prepend. |
[in] | sectionData | Specifies the text data to prepend. |
Definition at line 335 of file ntv2supportlogger.cpp.
◆ ToString() [1/2]
virtual void CNTV2SupportLogger::ToString |
( |
std::string & |
outString | ) |
const |
|
virtual |
Writes my support log into a string object.
- Parameters
-
[out] | outString | Receives my entire support log as a standard string, replacing its contents. |
◆ ToString() [2/2]
string CNTV2SupportLogger::ToString |
( |
void |
| ) |
const |
|
virtual |
◆ Version()
int CNTV2SupportLogger::Version |
( |
void |
| ) |
|
|
static |
The documentation for this class was generated from the following files: