Main Page   Class Hierarchy   Compound List   File List   Compound Members  

tutil.h

00001 /*
00002  * Copyright (c) 1991-2006 TIBCO Software Inc.
00003  * All rights reserved.
00004  * For more information, please contact:
00005  * TIBCO Software Inc., Palo Alto, California, USA
00006  *
00007  * $Id: //dev/packages/tpsi/cpsi/dev/68/src/rtworks/tutil.h#1 $
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 } //namespace SmartSockets
00187 
00188 #endif //_T_UTILITIES_H_

Generated on Fri Jul 14 15:05:55 2006 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001