00001 // -*- IDL -*- 00019 #ifndef BasicDataType_idl 00020 #define BasicDataType_idl 00021 00022 module RTC { 00023 //------------------------------------------------------------ 00024 // Basic data type definition 00025 //------------------------------------------------------------ 00026 struct Time 00027 { 00028 unsigned long sec; // sec 00029 unsigned long nsec; // nano sec 00030 }; 00031 00032 struct TimedState 00033 { 00034 Time tm; 00035 short data; 00036 }; 00037 00038 struct TimedShort 00039 { 00040 Time tm; 00041 short data; 00042 }; 00043 00044 struct TimedLong 00045 { 00046 Time tm; 00047 long data; 00048 }; 00049 00050 struct TimedUShort 00051 { 00052 Time tm; 00053 unsigned short data; 00054 }; 00055 00056 struct TimedULong 00057 { 00058 Time tm; 00059 unsigned long data; 00060 }; 00061 00062 struct TimedFloat 00063 { 00064 Time tm; 00065 float data; 00066 }; 00067 00068 struct TimedDouble 00069 { 00070 Time tm; 00071 double data; 00072 }; 00073 00074 struct TimedChar 00075 { 00076 Time tm; 00077 char data; 00078 }; 00079 00080 struct TimedWChar 00081 { 00082 Time tm; 00083 wchar data; 00084 }; 00085 00086 struct TimedBoolean 00087 { 00088 Time tm; 00089 boolean data; 00090 }; 00091 00092 struct TimedOctet 00093 { 00094 Time tm; 00095 octet data; 00096 }; 00097 00098 struct TimedString 00099 { 00100 Time tm; 00101 string data; 00102 }; 00103 00104 00105 struct TimedWString 00106 { 00107 Time tm; 00108 wstring data; 00109 }; 00110 00111 00115 struct TimedShortSeq 00116 { 00117 Time tm; 00118 sequence<short> data; 00119 }; 00120 00121 struct TimedLongSeq 00122 { 00123 Time tm; 00124 sequence<long> data; 00125 }; 00126 00127 struct TimedUShortSeq 00128 { 00129 Time tm; 00130 sequence<unsigned short> data; 00131 }; 00132 00133 struct TimedULongSeq 00134 { 00135 Time tm; 00136 sequence<unsigned long> data; 00137 }; 00138 00139 struct TimedFloatSeq 00140 { 00141 Time tm; 00142 sequence<float> data; 00143 }; 00144 00145 struct TimedDoubleSeq 00146 { 00147 Time tm; 00148 sequence<double> data; 00149 }; 00150 00151 struct TimedCharSeq 00152 { 00153 Time tm; 00154 sequence<char> data; 00155 }; 00156 00157 struct TimedWCharSeq 00158 { 00159 Time tm; 00160 sequence<wchar> data; 00161 }; 00162 00163 struct TimedBooleanSeq 00164 { 00165 Time tm; 00166 sequence<boolean> data; 00167 }; 00168 00169 struct TimedOctetSeq 00170 { 00171 Time tm; 00172 sequence<octet> data; 00173 }; 00174 00175 struct TimedStringSeq 00176 { 00177 Time tm; 00178 sequence<string> data; 00179 }; 00180 00181 struct TimedWStringSeq 00182 { 00183 Time tm; 00184 sequence<wstring> data; 00185 }; 00186 00187 }; 00188 00189 #endif // end of BasicDataType_idl