00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _T_UTILITIES_H_
00011 #define _T_UTILITIES_H_
00012
00013 #include <rtworks/ipc.h>
00014 #include <rtworks/tex.h>
00015 #include <rtworks/types.h>
00016
00017
00018 namespace SmartSockets {
00019
00026 class T_IPCX_API UtilitiesException : public Exception {
00027
00028 public:
00032 UtilitiesException () {}
00033
00037 virtual ~UtilitiesException () throw() {}
00038 };
00039
00044 class T_IPCX_API Utilities {
00045
00046 private:
00050 Utilities ();
00051
00055 ~Utilities () throw();
00056
00057
00058 public:
00072 static void parseCommandFile (const char * file)
00073 throw (UtilitiesException);
00074
00084 static void parseCommandString (const char * command_string)
00085 throw ();
00086
00105 static void parseTypedCommandString (const char * command_string)
00106 throw ();
00107
00127 static const char * getSocketDir ()
00128 throw ();
00129
00141 static const char * getVersionName ()
00142 throw ();
00143
00150 static int4 getVersionNumber ()
00151 throw ();
00152
00168 static void initThreads() throw (UtilitiesException);
00169
00173 static bool isThreadEnabled() throw ()
00174 {
00175 return TipcThreadEnabled();
00176 }
00177
00182 static void out(const char * format_str, ...) throw ();
00183
00184 };
00185
00186 }
00187
00188 #endif //_T_UTILITIES_H_