![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Go to the source code of this file.
Classes | |
| struct | DtRtiAssistantCommand |
| class | DtDeepCopyPointerIntoVector< T > |
| Deep copy a vector pointer entry into the provided target vector This helper functor is used in for_each to deep copy a vector of pointers for_each(orig.begin(), orig.end(), DtDeepCopyPointerIntoVector<T>(target));. More... | |
| class | DtDeepCopyPointerIntoSet< T > |
| Deep copy a set pointer entry into the provided target set This helper functor is used in for_each to deep copy a set of pointers for_each(orig.begin(), orig.end(), DtDeepCopyPointerIntoSet<T>(target));. More... | |
| class | DtDeepCopyPointerIntoMap< T, Y > |
| Deep copy a map pointer entry into the provided target map This helper functor is used in for_each to deep copy a map of types for_each(orig.begin(), orig.end(), DtDeepCopyPointerIntoMap<T, Y>(target)); NOTE: only the T class is dynamically allocated, the Y class is assumed to be. More... | |
Namespaces | |
| namespace | MAKRti |
Macros | |
| #define | MAKRTI_MT |
| #define | MAK_STATIC |
| #define | DtRtiFatal DtRtiOutputStream( MAKRti::DtNlFatal ) |
| The following macros are intended for use by plugins or applications which link to the RTI to facilitate logging messages from them to the RTI log file or console. | |
| #define | DtRtiWarn DtRtiOutputStream( MAKRti::DtNlWarn ) |
| #define | DtRtiInfo DtRtiOutputStream( MAKRti::DtNlInfo ) |
| #define | DtRtiVerbose DtRtiOutputStream( MAKRti::DtNlVerbose ) |
| #define | DtRtiDebug DtRtiOutputStream( MAKRti::DtNlDebug ) |
| #define | DtIsMember(container, element) (container.find(element) != container.end()) |
| Return true if the element is a member of the container. | |
| #define | DtTHROW_PROPAGATE(exceptionClass, errorMsg, exPtr) throw exceptionClass(MAKRti::DtString(#exceptionClass": ") + errorMsg, __DtFUNC__, MAKRti::DtFilename::stripPath(__FILE__), __LINE__, exPtr) |
| Throws a propgated MAKRti::DtException using the class name and the error message. | |
Typedefs | |
| typedef std::pair < MAKRti::DtInetAddr, int > | DtInetAddrAndPort |
| typedef MAKRti::DtTemplatedException < DtRtiExceptionDesignatorDefault > | DtRtiException |
| typedef MAKRti::DtTemplatedException < DtRtiExceptionDesignatorPopup > | DtRtiExceptionPopup |
| typedef MAKRti::DtTemplatedException < DtRtiExceptionDesignatorInvalidRidExpression > | DtRtiExceptionInvalidRidExpression |
Functions | |
| DT_DLL_RTIUTIL void | DtRtiAttachNotificationPrinter (MAKRti::DtNotifyLevelType level, MAKRti::DtPrinter *printer) |
| Windows only: Attach a MAKRti::DtPrinter to the RTI .dll's internal notification stream, since they are not exported. | |
| DT_DLL_RTIUTIL void | DtRtiDetachNotificationPrinter (MAKRti::DtNotifyLevelType level, MAKRti::DtPrinter *printer) |
| Windows only: Detach a MAKRti::DtPrinter from the RTI .dll's internal notification stream, since they are not exported. | |
| DT_DLL_RTIUTIL MAKRti::DtFilename | DtRtiSearchPathList (const MAKRti::DtFilename &libName, const MAKRti::DtString &searchPath="") |
| Search the system path for the specified library by name, and return the path to it If searchPath isn't specified, function will use PATH & LD_LIBRARY_PATH as appropriate. | |
| DT_DLL_RTIUTIL MAKRti::DtFilename | DtRtiLibPath (const MAKRti::DtString &searchPath="") |
| Search the system path for the RTI library and return the path to it If searchPath isn't specified, function will use PATH & LD_LIBRARY_PATH as appropriate. | |
| DT_DLL_RTIUTIL MAKRti::DtString & | DtMakeFileNameUnique (MAKRti::DtString &fileName) |
| Given the filepath, append unique characters to base file name to make it unique Returns the submitted string modified to be unique. | |
| DT_DLL_RTIUTIL MAKRti::DtFilename & | DtResolveAbsoluteFileLocation (const MAKRti::DtString &path, const MAKRti::DtString &fileName, MAKRti::DtFilename &resolvedFilePath) |
| Returns the absolute file location Returns the constructed file name in the file name given as a parameter. | |
| DT_DLL_RTIUTIL MAKRti::DtFilename & | DtMakeLogFilePath (const MAKRti::DtString &baseFilePath, const MAKRti::DtString &fileName, bool makeUnique, MAKRti::DtFilename &resolvedFilePath) |
| Makes a log file name from the given path and file name. | |
| DT_DLL_RTIUTIL bool | DtLocateConfigFile (MAKRti::DtFilename const &fileName, MAKRti::DtFilename &locatedFileName) |
| Locate a configuration file in the following order. | |
| DT_DLL_RTIUTIL bool | DtNonBlockingPollInputLine (MAKRti::DtString &buffer) |
| Polls line-buffered standard input without blocking execution. | |
| DT_DLL_RTIUTIL int | DtGetKey () |
| Returns a single character of input from stdin. | |
| DT_DLL_RTIUTIL int | DtKBHit () |
| Detect if there has been a button press on stdin. | |
| DT_DLL_RTIUTIL void | DtSetNotifyLevel (unsigned int notifyLevel) |
| DT_DLL_RTIUTIL bool | DtReadFile (FILE *fileHandle, char **fileBuffer, unsigned int *fileSize) |
| Read an opened file into a new buffer of returned size. | |
| DT_DLL_RTIUTIL int | DtBitsRequiredToRepresent (unsigned long x) |
| Return the number of bits required to represent the given value as an unsigned integer. | |
| DT_DLL_RTIUTIL const MAKRti::DtString & | DtGetLocalHostName () |
| Returns the local hostname. Not threadsafe. | |
| DT_DLL_RTIUTIL void | DtGetLocalHostName (MAKRti::DtString &hostName) |
| Sets the local hostname. | |
| DT_DLL_RTIUTIL MAKRti::DtString | DtPerformDNSLookup (MAKRti::DtInetAddr addr) |
| Could be costly operation. | |
| DT_DLL_RTIUTIL MAKRti::DtException const & | DtInitialException (MAKRti::DtException const &ex) |
| Return the initial exception if exceptions were chained or this one if not. | |
| DT_DLL_RTIUTIL MAKRti::DtOutputStream & | DtRtiOutputStream (MAKRti::DtNotifyLevelType level) |
| Return a reference to the RTI's MAKRti::DtOutputStream objects so plugins and applications can log to the RTI logfile. | |
| DT_DLL_RTIUTIL MAKRti::DtString | addrAndPortToString (const DtInetAddrAndPort &addrPort) |
| DT_DLL_RTIUTIL void | shutdownAssistant (bool force) |
| DT_DLL_RTIUTIL void | startupAssistant () |
| DT_DLL_RTIUTIL bool | changeAssistantStartup (DtRtiAssistantStartupRequest desiredState) |
| DT_DLL_RTIUTIL bool | removeAssistantStartup () |
| DT_DLL_RTIUTIL void | queryAssistantStartup (bool &isStartupItem, bool &isUserStartupItem) |
| template<class T > | |
| void | DtDeleteVectorOfPointers (T &pointerVector) |
| Delete elements of a vector of pointers. | |
| template<class T > | |
| void | DtDeleteSetOfPointers (T &pointerSet) |
| Delete elements of a set of pointers. | |
| template<typename T , typename TContainer > | |
| bool | DtUNIQUE_INSERT (const T &value, TContainer &container) |
| Insert a copy of a value into a container IF that value is not already in the container If the value exists, the container is unmodified and the function returns false. | |
| DT_DLL_RTIUTIL MAKRti::DtInetAddr | DtDefaultInterfaceAddr () |
| Get's the address of the default network interface on this machine. | |
| DT_DLL_RTIUTIL int | DtEnumerateInterfaces (std::vector< MAKRti::DtInetAddr > &addresses, bool ignoreLoopback) |
| Populate addresses with the IPs of local NICs. | |
| DT_DLL_RTIUTIL bool | DtIsIpOfLocalInterface (const MAKRti::DtInetAddr &addrInQuestion, bool refresh=false) |
| returns true for isAnyAddr, and if DtInetaddr matches ip of a local interface. | |
| DT_DLL_RTIUTIL unsigned long long | DtFirstHostMACAddr () |
| DT_DLL_RTIUTIL MAKRti::DtString | timeString (const MAKRti::DtClock &clock) |
| Return a string representing elapsed time and absolute time in seconds from clock wall clock time from system. | |
| DT_DLL_RTIUTIL MAKRti::DtString | timeString () |
| Return a string representing wall clock time from system. | |
| DT_DLL_RTIUTIL void | writeMessageToStdErrPipe (const MAKRti::DtString &msg) |
| Write the given message to a stdErr pipe. | |
Variables | |
| DT_DLL_RTIUTIL typedef std::set< MAKRti::DtInetAddr > | DtInetAddrSet |
| const unsigned int | DtGreatestValidPortNumber = 65535 |
| #define DtIsMember | ( | container, | |
| element | |||
| ) | (container.find(element) != container.end()) |
Return true if the element is a member of the container.
| #define DtRtiDebug DtRtiOutputStream( MAKRti::DtNlDebug ) |
| #define DtRtiFatal DtRtiOutputStream( MAKRti::DtNlFatal ) |
The following macros are intended for use by plugins or applications which link to the RTI to facilitate logging messages from them to the RTI log file or console.
| #define DtRtiInfo DtRtiOutputStream( MAKRti::DtNlInfo ) |
| #define DtRtiVerbose DtRtiOutputStream( MAKRti::DtNlVerbose ) |
| #define DtRtiWarn DtRtiOutputStream( MAKRti::DtNlWarn ) |
| #define DtTHROW_PROPAGATE | ( | exceptionClass, | |
| errorMsg, | |||
| exPtr | |||
| ) | throw exceptionClass(MAKRti::DtString(#exceptionClass": ") + errorMsg, __DtFUNC__, MAKRti::DtFilename::stripPath(__FILE__), __LINE__, exPtr) |
Throws a propgated MAKRti::DtException using the class name and the error message.
| #define MAK_STATIC |
| #define MAKRTI_MT |
| typedef std::pair< MAKRti::DtInetAddr, int > DtInetAddrAndPort |
| typedef MAKRti::DtTemplatedException<DtRtiExceptionDesignatorDefault> DtRtiException |
| typedef MAKRti::DtTemplatedException<DtRtiExceptionDesignatorInvalidRidExpression> DtRtiExceptionInvalidRidExpression |
| typedef MAKRti::DtTemplatedException<DtRtiExceptionDesignatorPopup> DtRtiExceptionPopup |
| DT_DLL_RTIUTIL MAKRti::DtString addrAndPortToString | ( | const DtInetAddrAndPort & | addrPort | ) |
| DT_DLL_RTIUTIL bool changeAssistantStartup | ( | DtRtiAssistantStartupRequest | desiredState | ) |
| DT_DLL_RTIUTIL int DtBitsRequiredToRepresent | ( | unsigned long | x | ) |
Return the number of bits required to represent the given value as an unsigned integer.
(1 bit if x is 0)
| DT_DLL_RTIUTIL MAKRti::DtInetAddr DtDefaultInterfaceAddr | ( | ) |
Get's the address of the default network interface on this machine.
| void DtDeleteSetOfPointers | ( | T & | pointerSet | ) |
Delete elements of a set of pointers.
Referenced by DtDeepCopyPointerIntoSet< T >::DtDeepCopyPointerIntoSet().
| void DtDeleteVectorOfPointers | ( | T & | pointerVector | ) |
Delete elements of a vector of pointers.
Referenced by DtDeepCopyPointerIntoVector< T >::DtDeepCopyPointerIntoVector().
| DT_DLL_RTIUTIL int DtEnumerateInterfaces | ( | std::vector< MAKRti::DtInetAddr > & | addresses, |
| bool | ignoreLoopback | ||
| ) |
Populate addresses with the IPs of local NICs.
Zero indicates success. Windows and Linux ONLY.
| DT_DLL_RTIUTIL unsigned long long DtFirstHostMACAddr | ( | ) |
| DT_DLL_RTIUTIL int DtGetKey | ( | ) |
Returns a single character of input from stdin.
Blocking, usually guarded with a call to kbhit()
| DT_DLL_RTIUTIL const MAKRti::DtString& DtGetLocalHostName | ( | ) |
Returns the local hostname. Not threadsafe.
| DT_DLL_RTIUTIL void DtGetLocalHostName | ( | MAKRti::DtString & | hostName | ) |
Sets the local hostname.
| DT_DLL_RTIUTIL MAKRti::DtException const& DtInitialException | ( | MAKRti::DtException const & | ex | ) |
Return the initial exception if exceptions were chained or this one if not.
| DT_DLL_RTIUTIL bool DtIsIpOfLocalInterface | ( | const MAKRti::DtInetAddr & | addrInQuestion, |
| bool | refresh = false |
||
| ) |
returns true for isAnyAddr, and if DtInetaddr matches ip of a local interface.
If refresh is true, function will refresh the hardware list (costly)
| DT_DLL_RTIUTIL int DtKBHit | ( | ) |
Detect if there has been a button press on stdin.
Doesn't shift input.
| DT_DLL_RTIUTIL bool DtLocateConfigFile | ( | MAKRti::DtFilename const & | fileName, |
| MAKRti::DtFilename & | locatedFileName | ||
| ) |
Locate a configuration file in the following order.
A) if file name is empty, return false B) if file name is an absolute path if file exists, return true otherwise return false C) if file name is a relative path if file exists relative to CWD, return true. else if file exists relative to RTI_CONFIG env. variable return true otherwise return false Returns bool: file was located? The located file name is returned via the second parameter including prepended path if located in RTI_CONFIG
| DT_DLL_RTIUTIL MAKRti::DtString& DtMakeFileNameUnique | ( | MAKRti::DtString & | fileName | ) |
Given the filepath, append unique characters to base file name to make it unique Returns the submitted string modified to be unique.
| DT_DLL_RTIUTIL MAKRti::DtFilename& DtMakeLogFilePath | ( | const MAKRti::DtString & | baseFilePath, |
| const MAKRti::DtString & | fileName, | ||
| bool | makeUnique, | ||
| MAKRti::DtFilename & | resolvedFilePath | ||
| ) |
Makes a log file name from the given path and file name.
Makes it unique if indicated. Returns the constructed file name in the file name given as a parameter.
| DT_DLL_RTIUTIL bool DtNonBlockingPollInputLine | ( | MAKRti::DtString & | buffer | ) |
Polls line-buffered standard input without blocking execution.
Input is stored in supplied buffer. Returns true when carriage return received as input (not added to buffer) at which point the buffer should be consumed (or copied) and emptied for subsequent calls. Returns false otherwise.
| DT_DLL_RTIUTIL MAKRti::DtString DtPerformDNSLookup | ( | MAKRti::DtInetAddr | addr | ) |
Could be costly operation.
Performs DNS lookup on input MAKRti::DtInetAddr. MAKRti::DtString is empty on failure. Doesn't correctly resolve IPv6 addresses yet.
| DT_DLL_RTIUTIL bool DtReadFile | ( | FILE * | fileHandle, |
| char ** | fileBuffer, | ||
| unsigned int * | fileSize | ||
| ) |
Read an opened file into a new buffer of returned size.
| DT_DLL_RTIUTIL MAKRti::DtFilename& DtResolveAbsoluteFileLocation | ( | const MAKRti::DtString & | path, |
| const MAKRti::DtString & | fileName, | ||
| MAKRti::DtFilename & | resolvedFilePath | ||
| ) |
Returns the absolute file location Returns the constructed file name in the file name given as a parameter.
| DT_DLL_RTIUTIL void DtRtiAttachNotificationPrinter | ( | MAKRti::DtNotifyLevelType | level, |
| MAKRti::DtPrinter * | printer | ||
| ) |
Windows only: Attach a MAKRti::DtPrinter to the RTI .dll's internal notification stream, since they are not exported.
| DT_DLL_RTIUTIL void DtRtiDetachNotificationPrinter | ( | MAKRti::DtNotifyLevelType | level, |
| MAKRti::DtPrinter * | printer | ||
| ) |
Windows only: Detach a MAKRti::DtPrinter from the RTI .dll's internal notification stream, since they are not exported.
| DT_DLL_RTIUTIL MAKRti::DtFilename DtRtiLibPath | ( | const MAKRti::DtString & | searchPath = "" | ) |
Search the system path for the RTI library and return the path to it If searchPath isn't specified, function will use PATH & LD_LIBRARY_PATH as appropriate.
| DT_DLL_RTIUTIL MAKRti::DtOutputStream& DtRtiOutputStream | ( | MAKRti::DtNotifyLevelType | level | ) |
Return a reference to the RTI's MAKRti::DtOutputStream objects so plugins and applications can log to the RTI logfile.
| DT_DLL_RTIUTIL MAKRti::DtFilename DtRtiSearchPathList | ( | const MAKRti::DtFilename & | libName, |
| const MAKRti::DtString & | searchPath = "" |
||
| ) |
Search the system path for the specified library by name, and return the path to it If searchPath isn't specified, function will use PATH & LD_LIBRARY_PATH as appropriate.
| DT_DLL_RTIUTIL void DtSetNotifyLevel | ( | unsigned int | notifyLevel | ) |
| bool DtUNIQUE_INSERT | ( | const T & | value, |
| TContainer & | container | ||
| ) |
Insert a copy of a value into a container IF that value is not already in the container If the value exists, the container is unmodified and the function returns false.
Returns true if inserted, false if element already contained.
| DT_DLL_RTIUTIL void queryAssistantStartup | ( | bool & | isStartupItem, |
| bool & | isUserStartupItem | ||
| ) |
| DT_DLL_RTIUTIL bool removeAssistantStartup | ( | ) |
| DT_DLL_RTIUTIL void shutdownAssistant | ( | bool | force | ) |
| DT_DLL_RTIUTIL void startupAssistant | ( | ) |
| DT_DLL_RTIUTIL MAKRti::DtString timeString | ( | const MAKRti::DtClock & | clock | ) |
Return a string representing elapsed time and absolute time in seconds from clock wall clock time from system.
Referenced by DtFederateConnectFilter< ParentClass >::applyFilter(), DtRtiExecConnectionFilter< DtRtiExecHandshakeProcessor >::applyFilter(), DtRtiExecConnectionFilter< ParentType >::doMessageProcessing(), DtFederateTimeStateInfo::operator==(), and DtAssistantFederateInfo::operator==().
| DT_DLL_RTIUTIL MAKRti::DtString timeString | ( | ) |
Return a string representing wall clock time from system.
| DT_DLL_RTIUTIL void writeMessageToStdErrPipe | ( | const MAKRti::DtString & | msg | ) |
Write the given message to a stdErr pipe.
| const unsigned int DtGreatestValidPortNumber = 65535 |
| DT_DLL_RTIUTIL typedef std::set<MAKRti::DtInetAddr> DtInetAddrSet |