![]() |
VR-Vantage 3.1 API Documentation
|
Classes | |
| class | DebugStreamAdapter |
This class implements a mechanism that logs to an arbitrary ostream. More... | |
| class | JrmException |
| Class that defines a basic exception class which behaves the same way on Windows/Linux. More... | |
| struct | MacAddress |
| Type representing a Media Access Control (MAC) address. More... | |
| struct | EthAdapterInfo |
| Describes an Ethernet adapter. More... | |
| class | TerminalApp |
| This class factors some functionality useful for command-line terminal applications (may also be used by GUI apps): More... | |
Typedefs | |
| typedef uint8_t | MacValueType |
| Type representing a single component (octet) of a Media Access Control (MAC) address. | |
| typedef std::vector< MacValueType > | MacAddressBase |
| Type used as the base class for the MacAddress type, declared separately for convenience. | |
Enumerations | |
| enum | DebugLevel { DebugLevel_Off, DebugLevel_UseGlobal, DebugLevel_LogError, DebugLevel_LogCritical, DebugLevel_LogWarning, DebugLevel_LogInfo, DebugLevel_Debug1, DebugLevel_Debug2, DebugLevel_Debug3, DebugLevel_Debug4, DebugLevel_Debug5, DebugLevel_CustomBase } |
| Defines debug levels having special meaning. More... | |
Functions | |
| JrmUtilsDllLinkage std::string | ToString (const DebugLevel &value) |
| Returns a human-readable string representation of the given value. | |
| bool JrmUtilsDllLinkage | GetEthAdapterInfo (std::vector< EthAdapterInfo > &out) |
| Lists information about the Ethernet adapters installed on the system. | |
| template<typename IntT > | |
| std::string | ToBaseString (const IntT &in, const int &base, const bool showBase=true, const int &width=0, const char &fill= '0') |
| Converts the given integral type into a string using the given numeric base (i.e. | |
| template<typename IntT > | |
| IntT | Bits (const IntT &mask, const size_t &begin, const size_t &length) |
| Returns the value represented by the specified range of contiguous bits within the given mask. | |
Variables | |
| static DebugLevel | ModuleDebugLevel = DebugLevel_UseGlobal |
| Threshold value used to control debug code execution and logging verbosity for the current "module" (i.e. | |
| JrmUtilsDllLinkage DebugLevel | GlobalDebugLevel |
| Threshold value used to control debug code execution and logging verbosity for any module whose module-relative debug level is set to DebugLevel_UseGlobal. | |
| typedef uint8_t jrm::MacValueType |
Type representing a single component (octet) of a Media Access Control (MAC) address.
| typedef std::vector<MacValueType> jrm::MacAddressBase |
Type used as the base class for the MacAddress type, declared separately for convenience.
| enum jrm::DebugLevel |
Defines debug levels having special meaning.
| JrmUtilsDllLinkage std::string jrm::ToString | ( | const DebugLevel & | value | ) |
Returns a human-readable string representation of the given value.
| bool JrmUtilsDllLinkage jrm::GetEthAdapterInfo | ( | std::vector< EthAdapterInfo > & | out | ) |
Lists information about the Ethernet adapters installed on the system.
| [out] | out | Upon success, contains one objects for each Ethernet adapter found. Any existing contents are cleared. |
out. | std::string jrm::ToBaseString | ( | const IntT & | in, |
| const int & | base, | ||
| const bool | showBase = true, |
||
| const int & | width = 0, |
||
| const char & | fill = '0' |
||
| ) |
Converts the given integral type into a string using the given numeric base (i.e.
radix).
| IntT | Any integral type, e.g. int, unsigned int, int32_t, uint32_t, etc. |
| [in] | in | Integer to convert to a string. |
| [in] | base | Numeric base (i.e. radix) to use for the conversion. Valid values are: 8, 10, 16. |
| [in] | showBase | Flag indicating if the numeric base should be represented as a prefix in the converted string, e.g.: "0x" for base 16. |
| [in] | width | Minimum number of digits to be written, padding on the left (following any base prefix) with fill characters as needed. |
| [in] | fill | The fill character used as padding to meet the specified width. |
| IntT jrm::Bits | ( | const IntT & | mask, |
| const size_t & | begin, | ||
| const size_t & | length | ||
| ) |
Returns the value represented by the specified range of contiguous bits within the given mask.
Bits are indexed starting at zero from least-to-most significant, e.g. for a uint32_t 31...0.
For example: Extracting bits 16-19 (begin=16, length=4) of 0x000F0000 results in value 0xF = 15.
| IntT | Any integral type, e.g. int, unsigned int, int32_t, uint32_t, etc. |
| [in] | mask | The mask from which to extract the value for the given bit range. |
| [in] | begin | Zero-based index of the first bit in the range. |
| [in] | length | Number of contiguous bits, starting at and including the one indexed by begin, for which to extract the value. |
|
static |
Threshold value used to control debug code execution and logging verbosity for the current "module" (i.e.
compilation unit). The higher this value is set, the more debugging code is run and the more verbose the log. A value of jrm::DebugLevel_Off turns debugging off for the module - neither debug statements nor log statements will be run.
| JrmUtilsDllLinkage DebugLevel jrm::GlobalDebugLevel |
Threshold value used to control debug code execution and logging verbosity for any module whose module-relative debug level is set to DebugLevel_UseGlobal.
A value of jrm::DebugLevel_Off turns debugging off for such modules - neither debug statements nor log statements will be run.