Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

TimeBase.idl

Go to the documentation of this file.
00001 //File: TimeBase.idl 
00002 //Part of the Time Service
00003 // Note: if your IDL compiler does not yet support the 
00004 //   "long long" data type, compile this module with the 
00005 //   preprocessor definition "NOLONGLONG". With many 
00006 //   compilers this would be done with a qualifier on 
00007 //   the command line, something like -DNOLONGLONG
00008 
00009 #ifndef _TIME_BASE_IDL_
00010 #define _TIME_BASE_IDL_
00011 #pragma prefix "omg.org"
00012 
00013 module TimeBase {
00014 
00015 #ifdef NOLONGLONG
00016         struct ulonglong{
00017                 unsigned long           low;
00018                 unsigned long           high;
00019         };
00020         typedef ulonglong               TimeT;
00021 #else
00022         typedef unsigned long long      TimeT;
00023 #endif
00024         
00025         typedef TimeT                   InaccuracyT;
00026         typedef short                   TdfT;
00027         struct UtcT {
00028                 TimeT                   time;           // 8 octets
00029                 unsigned long   inacclo;        // 4 octets
00030                 unsigned short  inacchi;        // 2 octets
00031                 TdfT                    tdf;            // 2 octets 
00032                                                                         // total 16 octets.
00033         };
00034 
00035         struct IntervalT {
00036                 TimeT                   lower_bound;
00037                 TimeT                   upper_bound;
00038         };
00039 };
00040 #endif /* ifndef _TIME_BASE_IDL_ */