2 * MICO --- an Open Source CORBA implementation
3 * Copyright (c) 1997-2003 by The Mico Team
5 * This file was automatically generated. DO NOT EDIT!
9 #include <mico/throw.h>
24 typedef UTO_ptr UTORef;
25 typedef ObjVar< UTO > UTO_var;
26 typedef ObjOut< UTO > UTO_out;
30 typedef TIO_ptr TIORef;
31 typedef ObjVar< TIO > TIO_var;
32 typedef ObjOut< TIO > TIO_out;
35 typedef TimeService *TimeService_ptr;
36 typedef TimeService_ptr TimeServiceRef;
37 typedef ObjVar< TimeService > TimeService_var;
38 typedef ObjOut< TimeService > TimeService_out;
44 #include <mico/timebase.h>
58 typedef TimeComparison& TimeComparison_out;
65 typedef ComparisonType& ComparisonType_out;
74 typedef OverlapType& OverlapType_out;
76 struct TimeUnavailable : public CORBA::UserException {
77 #ifdef HAVE_EXPLICIT_STRUCT_OPS
80 TimeUnavailable( const TimeUnavailable& s );
81 TimeUnavailable& operator=( const TimeUnavailable& s );
82 #endif //HAVE_EXPLICIT_STRUCT_OPS
86 TimeUnavailable *operator->() { return this; }
87 TimeUnavailable& operator*() { return *this; }
88 operator TimeUnavailable*() { return this; }
91 void _throwit() const;
92 const char *_repoid() const;
93 void _encode( CORBA::DataEncoder &en ) const;
94 void _encode_any( CORBA::Any &a ) const;
95 CORBA::Exception *_clone() const;
96 static TimeUnavailable *_downcast( CORBA::Exception *ex );
97 static const TimeUnavailable *_downcast( const CORBA::Exception *ex );
101 typedef TimeUnavailable TimeUnavailable_catch;
103 typedef ExceptVar< TimeUnavailable > TimeUnavailable_var;
104 typedef TVarOut< TimeUnavailable > TimeUnavailable_out;
105 typedef TimeUnavailable_var TimeUnavailable_catch;
106 #endif // HAVE_STD_EH
110 * Base class and common definitions for interface UTO
114 virtual public CORBA::Object
119 #ifdef HAVE_TYPEDEF_OVERLOAD
120 typedef UTO_ptr _ptr_type;
121 typedef UTO_var _var_type;
124 static UTO_ptr _narrow( CORBA::Object_ptr obj );
125 static UTO_ptr _narrow( CORBA::AbstractBase_ptr obj );
126 static UTO_ptr _duplicate( UTO_ptr _obj )
128 CORBA::Object::_duplicate (_obj);
132 static UTO_ptr _nil()
137 virtual void *_narrow_helper( const char *repoid );
139 virtual ::TimeBase::TimeT time() = 0;
140 virtual ::TimeBase::InaccuracyT inaccuracy() = 0;
141 virtual ::TimeBase::TdfT tdf() = 0;
142 virtual ::TimeBase::UtcT utc_time() = 0;
144 virtual UTO_ptr absolute_time() = 0;
145 virtual TimeComparison compare_time( ComparisonType comparison_type, UTO_ptr uto ) = 0;
146 virtual TIO_ptr time_to_interval( UTO_ptr uto ) = 0;
147 virtual TIO_ptr interval() = 0;
148 virtual void destroy() = 0;
154 void operator=( const UTO& );
157 // Stub for interface UTO
163 ::TimeBase::TimeT time();
164 ::TimeBase::InaccuracyT inaccuracy();
165 ::TimeBase::TdfT tdf();
166 ::TimeBase::UtcT utc_time();
168 UTO_ptr absolute_time();
169 TimeComparison compare_time( ComparisonType comparison_type, UTO_ptr uto );
170 TIO_ptr time_to_interval( UTO_ptr uto );
175 void operator=( const UTO_stub& );
178 #ifndef MICO_CONF_NO_POA
181 virtual public UTO_stub,
182 virtual public PortableServer::StubBase
185 UTO_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr);
186 virtual ~UTO_stub_clp ();
187 ::TimeBase::TimeT time();
188 ::TimeBase::InaccuracyT inaccuracy();
189 ::TimeBase::TdfT tdf();
190 ::TimeBase::UtcT utc_time();
192 UTO_ptr absolute_time();
193 TimeComparison compare_time( ComparisonType comparison_type, UTO_ptr uto );
194 TIO_ptr time_to_interval( UTO_ptr uto );
201 void operator=( const UTO_stub_clp & );
204 #endif // MICO_CONF_NO_POA
208 * Base class and common definitions for interface TIO
212 virtual public CORBA::Object
217 #ifdef HAVE_TYPEDEF_OVERLOAD
218 typedef TIO_ptr _ptr_type;
219 typedef TIO_var _var_type;
222 static TIO_ptr _narrow( CORBA::Object_ptr obj );
223 static TIO_ptr _narrow( CORBA::AbstractBase_ptr obj );
224 static TIO_ptr _duplicate( TIO_ptr _obj )
226 CORBA::Object::_duplicate (_obj);
230 static TIO_ptr _nil()
235 virtual void *_narrow_helper( const char *repoid );
237 virtual ::TimeBase::IntervalT time_interval() = 0;
239 virtual OverlapType spans( UTO_ptr time, TIO_out overlap ) = 0;
240 virtual OverlapType overlaps( TIO_ptr interval, TIO_out overlap ) = 0;
241 virtual UTO_ptr time() = 0;
242 virtual void destroy() = 0;
248 void operator=( const TIO& );
251 // Stub for interface TIO
257 ::TimeBase::IntervalT time_interval();
259 OverlapType spans( UTO_ptr time, TIO_out overlap );
260 OverlapType overlaps( TIO_ptr interval, TIO_out overlap );
265 void operator=( const TIO_stub& );
268 #ifndef MICO_CONF_NO_POA
271 virtual public TIO_stub,
272 virtual public PortableServer::StubBase
275 TIO_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr);
276 virtual ~TIO_stub_clp ();
277 ::TimeBase::IntervalT time_interval();
279 OverlapType spans( UTO_ptr time, TIO_out overlap );
280 OverlapType overlaps( TIO_ptr interval, TIO_out overlap );
287 void operator=( const TIO_stub_clp & );
290 #endif // MICO_CONF_NO_POA
294 * Base class and common definitions for interface TimeService
298 virtual public CORBA::Object
301 virtual ~TimeService();
303 #ifdef HAVE_TYPEDEF_OVERLOAD
304 typedef TimeService_ptr _ptr_type;
305 typedef TimeService_var _var_type;
308 static TimeService_ptr _narrow( CORBA::Object_ptr obj );
309 static TimeService_ptr _narrow( CORBA::AbstractBase_ptr obj );
310 static TimeService_ptr _duplicate( TimeService_ptr _obj )
312 CORBA::Object::_duplicate (_obj);
316 static TimeService_ptr _nil()
321 virtual void *_narrow_helper( const char *repoid );
323 virtual UTO_ptr universal_time() = 0;
324 virtual UTO_ptr secure_universal_time() = 0;
325 virtual UTO_ptr new_universal_time( ::TimeBase::TimeT time, ::TimeBase::InaccuracyT inaccuracy, ::TimeBase::TdfT tdf ) = 0;
326 virtual UTO_ptr uto_from_utc( const ::TimeBase::UtcT& utc ) = 0;
327 virtual TIO_ptr new_interval( ::TimeBase::TimeT lower, ::TimeBase::TimeT upper ) = 0;
332 TimeService( const TimeService& );
333 void operator=( const TimeService& );
336 // Stub for interface TimeService
337 class TimeService_stub:
338 virtual public TimeService
341 virtual ~TimeService_stub();
342 UTO_ptr universal_time();
343 UTO_ptr secure_universal_time();
344 UTO_ptr new_universal_time( ::TimeBase::TimeT time, ::TimeBase::InaccuracyT inaccuracy, ::TimeBase::TdfT tdf );
345 UTO_ptr uto_from_utc( const ::TimeBase::UtcT& utc );
346 TIO_ptr new_interval( ::TimeBase::TimeT lower, ::TimeBase::TimeT upper );
349 void operator=( const TimeService_stub& );
352 #ifndef MICO_CONF_NO_POA
354 class TimeService_stub_clp :
355 virtual public TimeService_stub,
356 virtual public PortableServer::StubBase
359 TimeService_stub_clp (PortableServer::POA_ptr, CORBA::Object_ptr);
360 virtual ~TimeService_stub_clp ();
361 UTO_ptr universal_time();
362 UTO_ptr secure_universal_time();
363 UTO_ptr new_universal_time( ::TimeBase::TimeT time, ::TimeBase::InaccuracyT inaccuracy, ::TimeBase::TdfT tdf );
364 UTO_ptr uto_from_utc( const ::TimeBase::UtcT& utc );
365 TIO_ptr new_interval( ::TimeBase::TimeT lower, ::TimeBase::TimeT upper );
368 TimeService_stub_clp ();
370 void operator=( const TimeService_stub_clp & );
373 #endif // MICO_CONF_NO_POA
378 #ifndef MICO_CONF_NO_POA
382 namespace POA_CosTime
385 class UTO : virtual public PortableServer::StaticImplementation
389 CosTime::UTO_ptr _this ();
390 bool dispatch (CORBA::StaticServerRequest_ptr);
391 virtual void invoke (CORBA::StaticServerRequest_ptr);
392 virtual CORBA::Boolean _is_a (const char *);
393 virtual CORBA::InterfaceDef_ptr _get_interface ();
394 virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr);
396 virtual void * _narrow_helper (const char *);
397 static UTO * _narrow (PortableServer::Servant);
398 virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr);
400 virtual ::TimeBase::TimeT time() = 0;
401 virtual ::TimeBase::InaccuracyT inaccuracy() = 0;
402 virtual ::TimeBase::TdfT tdf() = 0;
403 virtual ::TimeBase::UtcT utc_time() = 0;
405 virtual ::CosTime::UTO_ptr absolute_time() = 0;
406 virtual ::CosTime::TimeComparison compare_time( ::CosTime::ComparisonType comparison_type, ::CosTime::UTO_ptr uto ) = 0;
407 virtual ::CosTime::TIO_ptr time_to_interval( ::CosTime::UTO_ptr uto ) = 0;
408 virtual ::CosTime::TIO_ptr interval() = 0;
409 virtual void destroy() = 0;
416 void operator= (const UTO &);
419 class TIO : virtual public PortableServer::StaticImplementation
423 CosTime::TIO_ptr _this ();
424 bool dispatch (CORBA::StaticServerRequest_ptr);
425 virtual void invoke (CORBA::StaticServerRequest_ptr);
426 virtual CORBA::Boolean _is_a (const char *);
427 virtual CORBA::InterfaceDef_ptr _get_interface ();
428 virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr);
430 virtual void * _narrow_helper (const char *);
431 static TIO * _narrow (PortableServer::Servant);
432 virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr);
434 virtual ::TimeBase::IntervalT time_interval() = 0;
436 virtual ::CosTime::OverlapType spans( ::CosTime::UTO_ptr time, ::CosTime::TIO_out overlap ) = 0;
437 virtual ::CosTime::OverlapType overlaps( ::CosTime::TIO_ptr interval, ::CosTime::TIO_out overlap ) = 0;
438 virtual ::CosTime::UTO_ptr time() = 0;
439 virtual void destroy() = 0;
446 void operator= (const TIO &);
449 class TimeService : virtual public PortableServer::StaticImplementation
452 virtual ~TimeService ();
453 CosTime::TimeService_ptr _this ();
454 bool dispatch (CORBA::StaticServerRequest_ptr);
455 virtual void invoke (CORBA::StaticServerRequest_ptr);
456 virtual CORBA::Boolean _is_a (const char *);
457 virtual CORBA::InterfaceDef_ptr _get_interface ();
458 virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &, PortableServer::POA_ptr);
460 virtual void * _narrow_helper (const char *);
461 static TimeService * _narrow (PortableServer::Servant);
462 virtual CORBA::Object_ptr _make_stub (PortableServer::POA_ptr, CORBA::Object_ptr);
464 virtual ::CosTime::UTO_ptr universal_time() = 0;
465 virtual ::CosTime::UTO_ptr secure_universal_time() = 0;
466 virtual ::CosTime::UTO_ptr new_universal_time( ::TimeBase::TimeT time, ::TimeBase::InaccuracyT inaccuracy, ::TimeBase::TdfT tdf ) = 0;
467 virtual ::CosTime::UTO_ptr uto_from_utc( const ::TimeBase::UtcT& utc ) = 0;
468 virtual ::CosTime::TIO_ptr new_interval( ::TimeBase::TimeT lower, ::TimeBase::TimeT upper ) = 0;
474 TimeService (const TimeService &);
475 void operator= (const TimeService &);
481 #endif // MICO_CONF_NO_POA
483 extern CORBA::StaticTypeInfo *_marshaller_CosTime_TimeComparison;
485 extern CORBA::StaticTypeInfo *_marshaller_CosTime_ComparisonType;
487 extern CORBA::StaticTypeInfo *_marshaller_CosTime_OverlapType;
489 extern CORBA::StaticTypeInfo *_marshaller_CosTime_TimeUnavailable;
491 extern CORBA::StaticTypeInfo *_marshaller_CosTime_UTO;
493 extern CORBA::StaticTypeInfo *_marshaller_CosTime_TIO;
495 extern CORBA::StaticTypeInfo *_marshaller_CosTime_TimeService;