Main Page   Class Hierarchy   Compound List   File List   Compound Members  

tsystem.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/tsystem.h#1 $
00008  */
00009 
00010 #ifndef _T_SYSTEM_H_
00011 #define _T_SYSTEM_H_
00012 
00013 //get STL exception
00014 #include <rtworks/ipc.h>
00015 #include <rtworks/tex.h>
00016 #include <rtworks/types.h>
00017 
00018 namespace SmartSockets {
00019 
00026     class T_IPCX_API SystemException : public Exception {
00027 
00028       private:
00029         int4 _runCommandErr;
00030 
00031       public:
00035         SystemException ()
00036         : _runCommandErr(0)
00037         {
00038         }
00039 
00047         SystemException (int4 errNum, int4 runCommandErr = 0)
00048         : Exception (errNum)
00049         , _runCommandErr(runCommandErr)
00050         {
00051         }
00052 
00057         virtual void setRunCommandError (int4 errNum) throw()
00058         {
00059           _runCommandErr = errNum;
00060         }
00061 
00067         virtual int4 getRunCommandError () throw()
00068         {
00069           return _runCommandErr;
00070         }
00071  
00075         virtual ~SystemException () throw() {}
00076     };
00077 
00078 
00079 
00080 
00084     class T_IPCX_API System
00085     {
00086       public:
00116         static void runCommand(const char * command) throw (SystemException);
00117   
00124         static real8 getTime() throw ();
00125   
00135         static void sleep (real8 timeout) throw (SystemException);
00136   
00153         static void exit(int4 exitCode) throw ();
00154   
00163         static int4 getIntFormat() throw();
00164   
00165   
00176         static int4 getFloatingPointFormat() throw();
00177   
00182         static const int4 INT_BIG_ENDIAN;
00183   
00188         static const int4 INT_LITTLE_ENDIAN;
00189   
00194         static const int4 REAL_DEC_D;
00195   
00196   
00201         static const int4 REAL_DEC_G;
00202   
00207         static const int4 REAL_IEEE;
00208   
00212         static const int4 REAL_IBM_370;    
00213   
00214       private:
00219         System();
00220   
00225         ~System() throw();
00226     };
00227 
00228 }//namespace TSS
00229 
00230 #endif //_T_SYSTEM_H_

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