AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
#include <info.h>
Public Member Functions | |
AJASystemInfo (const AJASystemInfoMemoryUnit inUnits=AJA_SystemInfoMemoryUnit_Megabytes, AJASystemInfoSections sections=AJA_SystemInfoSection_All) | |
Default constructor that instantiates the platform-specific implementation, then calls Rescan. More... | |
virtual | ~AJASystemInfo () |
virtual AJAStatus | Rescan (AJASystemInfoSections sections=AJA_SystemInfoSection_All) |
virtual AJAStatus | GetValue (const AJASystemInfoTag inTag, std::string &outValue) const |
Answers with the host system info value string for the given AJASystemInfoTag. More... | |
virtual AJAStatus | GetLabel (const AJASystemInfoTag inTag, std::string &outLabel) const |
Answers with the host system info label string for the given AJASystemInfoTag. More... | |
virtual AJAStatus | GetLabelValuePairs (AJALabelValuePairs &outTable, bool clearTable=false) const |
Generates a "table" of label/value pairs that contains the complete host system info table. More... | |
virtual void | ToString (std::string &outAllLabelsAndValues) const |
Answers with a multi-line string that contains the complete host system info table. More... | |
virtual std::string | ToString (const size_t inValueWrapLen=0, const size_t inGutterWidth=3) const |
Static Public Member Functions | |
static std::string | ToString (const AJALabelValuePairs &inLabelValuePairs, const size_t inValueWrapLen=0, const size_t inGutterWidth=3) |
Generates a multi-line string from a "table" of label/value pairs that, when displayed in a monospaced font, appears as a neat, two-column table. More... | |
static AJALabelValuePairs & | append (AJALabelValuePairs &inOutTable, const std::string &inLabel, const std::string &inValue=std::string()) |
A convenience function that appends the given label and value strings to the provided AJALabelValuePairs table. More... | |
AJASystemInfo::AJASystemInfo | ( | const AJASystemInfoMemoryUnit | inUnits = AJA_SystemInfoMemoryUnit_Megabytes , |
AJASystemInfoSections | sections = AJA_SystemInfoSection_All |
||
) |
Default constructor that instantiates the platform-specific implementation, then calls Rescan.
[in] | inUnits | Optionally specifies the AJASystemInfoMemoryUnit to use. Defaults to "megabytes". |
[in] | sections | The sections of the info structure to rescan, bitwise OR the desired sections or use AJA_SystemInfoSection_All (the default) for all sections or AJA_SystemInfoSection_None for no sections. In the case of AJA_SystemInfoSection_None only the labels are set, no scanning is done at initialization. |
|
inlinestatic |
A convenience function that appends the given label and value strings to the provided AJALabelValuePairs table.
inOutTable | The AJALabelValuePairs table to be modified. | |
[in] | inLabel | Specifies the label string to use. |
[in] | inValue | Specifies the value string to use. If empty, treat "inLabel" as a section heading. |
|
virtual |
|
virtual |
Generates a "table" of label/value pairs that contains the complete host system info table.
[out] | outTable | The AJALabelValuePairs table. |
[in] | clearTable | Clear the passed in table before adding new items? Defaults to false. |
|
virtual |
|
virtual |
Rescans the host system.
[in] | sections | The sections of the info structure to rescan, bitwise OR the desired sections or use AJA_SystemInfoSection_All (the default) for all sections or AJA_SystemInfoSection_None for no sections. In the case of AJA_SystemInfoSection_None only the labels are set, no scanning is done. |
|
static |
Generates a multi-line string from a "table" of label/value pairs that, when displayed in a monospaced font, appears as a neat, two-column table.
[in] | inLabelValuePairs | The AJALabelValuePairs to be formatted as a table. |
[in] | inValueWrapLen | Optionally specifies the maximum width of the "value" column, in characters. Zero, the default, disables any/all wrapping. (However, wrapping always occurs on line-breaks (e.g. CRLF, LF, CR, etc.)). |
[in] | inGutterWidth | Optionally specifies the gap ("gutter") between the "label" and "value" columns, in character spaces. Defaults to 3 spaces. |
|
virtual |
[in] | inValueWrapLen | Optionally specifies the maximum width of the "value" column, in characters. Zero, the default, disables wrapping. (However, wrapping always occurs on line-breaks (e.g. CRLF, LF, CR, etc.)). |
[in] | inGutterWidth | Optionally specifies the gap ("gutter") between the "label" and "value" columns, in character spaces. Defaults to 3 spaces. |
|
virtual |
Answers with a multi-line string that contains the complete host system info table.
[out] | outAllLabelsAndValues | Receives the string |