normativeTypesCPP
|
Utility class for parsing a type ID that follows the NT type ID conventions. More...
#include <ntid.h>
Public Member Functions | |
NTID (const std::string &id) | |
std::string | getFullName () |
std::string | getQualifiedName () |
std::string | getNamespace () |
std::string | getName () |
std::string | getVersion () |
std::string | getMajorVersionString () |
bool | hasMajorVersion () |
int | getMajorVersion () |
std::string | getMinorVersionString () |
bool | hasMinorVersion () |
int | getMinorVersion () |
Utility class for parsing a type ID that follows the NT type ID conventions.
An NT type ID will be of the from
e.g.
epics::nt::NTID::NTID | ( | const std::string & | id | ) |
std::string epics::nt::NTID::getFullName | ( | ) |
int epics::nt::NTID::getMajorVersion | ( | ) |
Returns the Major version as an integer.
For example above return 1.
Definition at line 135 of file ntid.cpp.
References hasMajorVersion().
std::string epics::nt::NTID::getMajorVersionString | ( | ) |
Returns the Major version as a string.
For example above return "1".
Definition at line 100 of file ntid.cpp.
Referenced by getMinorVersionString(), and hasMajorVersion().
int epics::nt::NTID::getMinorVersion | ( | ) |
Returns the Minor version as an integer.
For example above return 1.
Definition at line 180 of file ntid.cpp.
References hasMinorVersion().
std::string epics::nt::NTID::getMinorVersionString | ( | ) |
Returns the Major version as a string.
For example above return "1".
Definition at line 143 of file ntid.cpp.
References getMajorVersionString().
Referenced by hasMinorVersion().
std::string epics::nt::NTID::getName | ( | ) |
std::string epics::nt::NTID::getNamespace | ( | ) |
std::string epics::nt::NTID::getQualifiedName | ( | ) |
std::string epics::nt::NTID::getVersion | ( | ) |
bool epics::nt::NTID::hasMajorVersion | ( | ) |
Does the ID contain a major version and is it a number.
Definition at line 118 of file ntid.cpp.
References getMajorVersionString().
Referenced by getMajorVersion().
bool epics::nt::NTID::hasMinorVersion | ( | ) |
Does the ID contain a minor version and is it a number.
Definition at line 163 of file ntid.cpp.
References getMinorVersionString().
Referenced by getMinorVersion().