|
| #define | DtDELETE(x) |
| | DT_FD_ZERO_USES_MEMSET. More...
|
| |
| #define | DtDELETE_VOID(x, cast) |
| |
| #define | DtISON(a, x) (a & x) |
| |
| #define | DtISOFF(a, x) (!DtISON(a, x)) |
| |
| #define | DtTURNON(a, x) (a |= x) |
| |
| #define | DtTURNOFF(a, x) (a &= ~x) |
| |
| #define | DtNUMBER(foo) (sizeof(foo)/sizeof(foo[0])) |
| |
| #define | DtOFFSET(type, field) ((size_t)&((type *)NULL)->field) |
| |
| #define | DtSIZEOF(type, field) sizeof(((type *)NULL)->field) |
| |
| #define | DtATOI(s) (int)strtol(s, 0, 0) |
| | some versions of strtol returns INT_MAX for input larger than 0x7fffffff. More...
|
| |
| #define | DT_VXWORKS_APP(name) |
| |
|
| void | bzero (char *b, int length) |
| | Need bzero. More...
|
| |
| int | DtROUND_TO_MULT (int num, int mult) |
| | Rounds num up to a multiple of mult. More...
|
| |
| template<typename T > |
| T | DtMax (T x, T y) |
| | Returns what ever is greater, x or y of type T. More...
|
| |
| template<typename T > |
| T | DtMin (T x, T y) |
| | Returns the which ever is lesser, x or y of type T. More...
|
| |
| char * | DtDeg2DmsString (double val, char *buff, int prec) |
| |
| char * | DtDeg2DmsString (double val) |
| |
| int | DtIsInList (const int *lst, int num) |
| | Returns -1 if num is not in lst. More...
|
| |
| int | DtSelect (int n, fd_set *i, fd_set *o, fd_set *e, DtTime t) |
| |
| void | DtClose (int &fd) |
| |
| char * | DtStrdup (const char *str) |
| | Strdup wrapper. More...
|
| |
| char * | DtToLower (char *str) |
| | Convert str to all lowercase. More...
|
| |
| char * | DtToUpper (char *str) |
| | Convert str to all uppercase. More...
|
| |
| const char * | DtInetAddrString (DtIpv4Addr addr) |
| | Converts ulong to internet dot notation (returns internal static buffer). More...
|
| |
| DtIpv4Addr | DtStringToInetAddr (const char *str) |
| | Converts to internet dot notation to ulong in host order. More...
|
| |
| DtIpv4Addr | DtStringToInetAddr (const DtString &str) |
| |
| DtIpv4Addr | DtHexStringToInetAddr (const char *str) |
| | Converts to internet dot notation to ulong in host order. More...
|
| |
| DtMachineSize | alignValue (DtMachineSize value, DtMachineSize alignment) |
| | Adjust the given value to the nearest multiple of the given alignment Efficient means to determine byte alignment avoiding costly % modulo operator (division and remainder) More...
|
| |
| const void * | alignPtr (const void *ptr, DtMachineSize alignment) |
| | Adjust the given pointer to the given byte alignment (in bytes) More...
|
| |
| void * | alignPtr (void *ptr, DtMachineSize alignment) |
| |
| DtMachineSize | alignedPadding (DtMachineSize value, DtMachineSize alignment) |
| | Return the adjustment necessary to align the given value to the given alignment Efficient means to determine padding for byte alignment avoiding costly % modulo operator (division and remainder) More...
|
| |
| DtMachineSize | alignedPtrPadding (const void *ptr, DtMachineSize alignment) |
| | Return the # padding bytes necessary to align the given pointer to the given byte alignment (in bytes) More...
|
| |
| int | DtResizeString (char *&buf, int &oldLn, int newLn) |
| | For VXWORKS. More...
|
| |
| int | DtArgc (char *cmdLine) |
| | Convert a command line (single string with args separated by spaces) to argv, argc format. More...
|
| |
| char ** | DtArgv (char *cmdLine, int *argc=NULL) |
| |
| const char * | DtOperatingSystem () |
| | Returns the platform we're running on. More...
|
| |
| const char * | DtCompiler () |
| | Returns the compiler. More...
|
| |
| int | DtGetPid () |
| | Returns the process ID for the running process. More...
|
| |
| int | DtGetPPid () |
| | Returns the process ID for the parent of the running process. More...
|
| |
| void | printHexToStream (std::ostream &stream, unsigned int numberOfColumns, unsigned char *ptr, unsigned int bytes) |
| | Prints Hex to a stream based on an address and the bytes. More...
|
| |
provides basic Operating Independent Methods useful to a federate