Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

steelworks.h

Go to the documentation of this file.
00001 /*
00002  *  MICO --- an Open Source CORBA implementation
00003  *  Copyright (c) 1997-2003 by The Mico Team
00004  *
00005  *  This file was automatically generated. DO NOT EDIT!
00006  */
00007 
00008 #include <CORBA.h>
00009 #include <mico/throw.h>
00010 
00011 #ifndef __STEELWORKS_H__
00012 #define __STEELWORKS_H__
00013 
00014 
00015 
00016 
00017 
00018 
00019 namespace Steelworks
00020 {
00021 
00022 class Listener;
00023 typedef Listener *Listener_ptr;
00024 typedef Listener_ptr ListenerRef;
00025 typedef ObjVar< Listener > Listener_var;
00026 typedef ObjOut< Listener > Listener_out;
00027 
00028 class IDLConsts;
00029 typedef IDLConsts *IDLConsts_ptr;
00030 typedef IDLConsts_ptr IDLConstsRef;
00031 typedef ObjVar< IDLConsts > IDLConsts_var;
00032 typedef ObjOut< IDLConsts > IDLConsts_out;
00033 
00034 }
00035 
00036 
00037 
00038 
00039 
00040 
00041 namespace Steelworks
00042 {
00043 
00044 struct Ring;
00045 typedef TFixVar< Ring > Ring_var;
00046 typedef Ring& Ring_out;
00047 
00048 
00049 struct Ring {
00050   #ifdef HAVE_TYPEDEF_OVERLOAD
00051   typedef Ring_var _var_type;
00052   #endif
00053   #ifdef HAVE_EXPLICIT_STRUCT_OPS
00054   Ring();
00055   ~Ring();
00056   Ring( const Ring& s );
00057   Ring& operator=( const Ring& s );
00058   #endif //HAVE_EXPLICIT_STRUCT_OPS
00059 
00060   CORBA::Long no;
00061   CORBA::Long reqNumber;
00062 };
00063 
00064 typedef SequenceTmpl< Ring,MICO_TID_DEF> RingSet;
00065 typedef TSeqVar< SequenceTmpl< Ring,MICO_TID_DEF> > RingSet_var;
00066 typedef TSeqOut< SequenceTmpl< Ring,MICO_TID_DEF> > RingSet_out;
00067 
00068 struct Stack;
00069 typedef TVarVar< Stack > Stack_var;
00070 typedef TVarOut< Stack > Stack_out;
00071 
00072 
00073 struct Stack {
00074   #ifdef HAVE_TYPEDEF_OVERLOAD
00075   typedef Stack_var _var_type;
00076   #endif
00077   #ifdef HAVE_EXPLICIT_STRUCT_OPS
00078   Stack();
00079   ~Stack();
00080   Stack( const Stack& s );
00081   Stack& operator=( const Stack& s );
00082   #endif //HAVE_EXPLICIT_STRUCT_OPS
00083 
00084   CORBA::Long x;
00085   CORBA::Long y;
00086   CORBA::Double height;
00087   CORBA::Double maxDiameter;
00088   RingSet rings;
00089 };
00090 
00091 typedef SequenceTmpl< Stack,MICO_TID_DEF> StackSet;
00092 typedef TSeqVar< SequenceTmpl< Stack,MICO_TID_DEF> > StackSet_var;
00093 typedef TSeqOut< SequenceTmpl< Stack,MICO_TID_DEF> > StackSet_out;
00094 
00095 struct Pallet;
00096 typedef TVarVar< Pallet > Pallet_var;
00097 typedef TVarOut< Pallet > Pallet_out;
00098 
00099 
00100 struct Pallet {
00101   #ifdef HAVE_TYPEDEF_OVERLOAD
00102   typedef Pallet_var _var_type;
00103   #endif
00104   #ifdef HAVE_EXPLICIT_STRUCT_OPS
00105   Pallet();
00106   ~Pallet();
00107   Pallet( const Pallet& s );
00108   Pallet& operator=( const Pallet& s );
00109   #endif //HAVE_EXPLICIT_STRUCT_OPS
00110 
00111   CORBA::Long number;
00112   StackSet stacks;
00113 };
00114 
00115 struct Request;
00116 typedef TVarVar< Request > Request_var;
00117 typedef TVarOut< Request > Request_out;
00118 
00119 
00120 struct Request {
00121   #ifdef HAVE_TYPEDEF_OVERLOAD
00122   typedef Request_var _var_type;
00123   #endif
00124   #ifdef HAVE_EXPLICIT_STRUCT_OPS
00125   Request();
00126   ~Request();
00127   Request( const Request& s );
00128   Request& operator=( const Request& s );
00129   #endif //HAVE_EXPLICIT_STRUCT_OPS
00130 
00131   CORBA::Long number;
00132   CORBA::String_var startTime;
00133   CORBA::String_var treatment;
00134   CORBA::String_var steelType;
00135   CORBA::Double diameter;
00136   CORBA::Double height;
00137   CORBA::Double weight;
00138   CORBA::Long numberOfRings;
00139   CORBA::String_var comment;
00140 };
00141 
00142 
00143 /*
00144  * Base class and common definitions for interface Listener
00145  */
00146 
00147 class Listener : 
00148   virtual public CORBA::Object
00149 {
00150   public:
00151     virtual ~Listener();
00152 
00153     #ifdef HAVE_TYPEDEF_OVERLOAD
00154     typedef Listener_ptr _ptr_type;
00155     typedef Listener_var _var_type;
00156     #endif
00157 
00158     static Listener_ptr _narrow( CORBA::Object_ptr obj );
00159     static Listener_ptr _narrow( CORBA::AbstractBase_ptr obj );
00160     static Listener_ptr _duplicate( Listener_ptr _obj )
00161     {
00162       CORBA::Object::_duplicate (_obj);
00163       return _obj;
00164     }
00165 
00166     static Listener_ptr _nil()
00167     {
00168       return 0;
00169     }
00170 
00171     virtual void *_narrow_helper( const char *repoid );
00172 
00173     virtual void initialize() = 0;
00174     virtual void factorySetState( CORBA::Boolean state ) = 0;
00175     virtual void newRequest( const Request& req ) = 0;
00176     virtual void doneRequest( CORBA::Long number, const char* endTime ) = 0;
00177     virtual void setNumberOfRings( CORBA::Long reqNumber, CORBA::Long newNumber ) = 0;
00178     virtual void doneRing( CORBA::Long reqNumber ) = 0;
00179     virtual void moveVehicle( CORBA::Long number, CORBA::Long newPosition ) = 0;
00180     virtual void shift( CORBA::Long numberOfRow ) = 0;
00181     virtual void newPallet( const Pallet& p ) = 0;
00182     virtual void movePallet( CORBA::Long number, CORBA::Long newPosition ) = 0;
00183     virtual void palletChangesOwner( CORBA::Long palletNumber, CORBA::Long newOwner, CORBA::Long newSubOwner ) = 0;
00184     virtual void deletePallet( CORBA::Long number ) = 0;
00185     virtual void craneSetState( CORBA::Boolean moves ) = 0;
00186     virtual void craneMoveTo( CORBA::Long newPosition, CORBA::Long subPosition ) = 0;
00187     virtual void ovenSetState( CORBA::Long number, CORBA::Long newState ) = 0;
00188     virtual void storageSetState( CORBA::Long storageNumber, CORBA::Long state ) = 0;
00189     virtual void transmissionMoveTo( CORBA::Long position ) = 0;
00190     virtual void setTime( const char* time ) = 0;
00191     virtual void setDay( CORBA::Long day ) = 0;
00192     virtual void stop() = 0;
00193 
00194   protected:
00195     Listener() {};
00196   private:
00197     Listener( const Listener& );
00198     void operator=( const Listener& );
00199 };
00200 
00201 // Stub for interface Listener
00202 class Listener_stub:
00203   virtual public Listener
00204 {
00205   public:
00206     virtual ~Listener_stub();
00207     void initialize();
00208     void factorySetState( CORBA::Boolean state );
00209     void newRequest( const Request& req );
00210     void doneRequest( CORBA::Long number, const char* endTime );
00211     void setNumberOfRings( CORBA::Long reqNumber, CORBA::Long newNumber );
00212     void doneRing( CORBA::Long reqNumber );
00213     void moveVehicle( CORBA::Long number, CORBA::Long newPosition );
00214     void shift( CORBA::Long numberOfRow );
00215     void newPallet( const Pallet& p );
00216     void movePallet( CORBA::Long number, CORBA::Long newPosition );
00217     void palletChangesOwner( CORBA::Long palletNumber, CORBA::Long newOwner, CORBA::Long newSubOwner );
00218     void deletePallet( CORBA::Long number );
00219     void craneSetState( CORBA::Boolean moves );
00220     void craneMoveTo( CORBA::Long newPosition, CORBA::Long subPosition );
00221     void ovenSetState( CORBA::Long number, CORBA::Long newState );
00222     void storageSetState( CORBA::Long storageNumber, CORBA::Long state );
00223     void transmissionMoveTo( CORBA::Long position );
00224     void setTime( const char* time );
00225     void setDay( CORBA::Long day );
00226     void stop();
00227 
00228   private:
00229     void operator=( const Listener_stub& );
00230 };
00231 
00232 class Listener_skel :
00233   virtual public StaticMethodDispatcher,
00234   virtual public Listener
00235 {
00236   public:
00237     Listener_skel( const CORBA::BOA::ReferenceData & = CORBA::BOA::ReferenceData() );
00238     virtual ~Listener_skel();
00239     Listener_skel( CORBA::Object_ptr obj );
00240     virtual bool dispatch( CORBA::StaticServerRequest_ptr __req, CORBA::Environment &_env );
00241     Listener_ptr _this();
00242 
00243 };
00244 
00245 
00246 /*
00247  * Base class and common definitions for interface IDLConsts
00248  */
00249 
00250 class IDLConsts : 
00251   virtual public CORBA::Object
00252 {
00253   public:
00254     virtual ~IDLConsts();
00255 
00256     #ifdef HAVE_TYPEDEF_OVERLOAD
00257     typedef IDLConsts_ptr _ptr_type;
00258     typedef IDLConsts_var _var_type;
00259     #endif
00260 
00261     static IDLConsts_ptr _narrow( CORBA::Object_ptr obj );
00262     static IDLConsts_ptr _narrow( CORBA::AbstractBase_ptr obj );
00263     static IDLConsts_ptr _duplicate( IDLConsts_ptr _obj )
00264     {
00265       CORBA::Object::_duplicate (_obj);
00266       return _obj;
00267     }
00268 
00269     static IDLConsts_ptr _nil()
00270     {
00271       return 0;
00272     }
00273 
00274     virtual void *_narrow_helper( const char *repoid );
00275 
00276     static const CORBA::Long CRANE_POS_UNLOAD;
00277     static const CORBA::Long CRANE_POS_OVEN;
00278     static const CORBA::Long CRANE_POS_BATH;
00279     static const CORBA::Long CRANE_POS_STORAGE;
00280     static const CORBA::Long CRANE_POS_TRANSMISSION;
00281     static const CORBA::Long CRANE_SUBPOS_STORE_PLACE_1;
00282     static const CORBA::Long CRANE_SUBPOS_STORE_PLACE_2;
00283     static const CORBA::Long CRANE_SUBPOS_STORE_PLACE_3;
00284     static const CORBA::Long CRANE_SUBPOS_FAN_PLACE;
00285     static const CORBA::Long CRANE_SUBPOS_POLYMER_BATH;
00286     static const CORBA::Long CRANE_SUBPOS_WATER_BATH;
00287     static const CORBA::Long PAL_POS_CRANE;
00288     static const CORBA::Long PAL_POS_OVEN;
00289     static const CORBA::Long PAL_POS_BATH;
00290     static const CORBA::Long PAL_POS_STORAGE;
00291     static const CORBA::Long PAL_POS_TRANSMISSION;
00292     static const CORBA::Long PAL_POS_BIGSTORAGE;
00293     static const CORBA::Long PAL_POS_HARDNESSTEST;
00294     static const CORBA::Long PAL_SUBPOS_STORE_PLACE_1;
00295     static const CORBA::Long PAL_SUBPOS_STORE_PLACE_2;
00296     static const CORBA::Long PAL_SUBPOS_STORE_PLACE_3;
00297     static const CORBA::Long PAL_SUBPOS_FAN_PLACE;
00298     static const CORBA::Long PAL_SUBPOS_POLYMER_BATH;
00299     static const CORBA::Long PAL_SUBPOS_WATER_BATH;
00300     static const CORBA::Long VEHICLE_POS_ROW1;
00301     static const CORBA::Long VEHICLE_POS_ROW2;
00302     static const CORBA::Long VEHICLE_POS_ROW3;
00303     static const CORBA::Long VEHICLE_POS_ROW4;
00304     static const CORBA::Long VEHICLE_POS_UNLOAD;
00305     static const CORBA::Long STORAGE_EMPTY;
00306     static const CORBA::Long STORAGE_PARKING;
00307     static const CORBA::Long STORAGE_AIRCOOLING;
00308     static const CORBA::Long STORAGE_VENTILATOR;
00309   protected:
00310     IDLConsts() {};
00311   private:
00312     IDLConsts( const IDLConsts& );
00313     void operator=( const IDLConsts& );
00314 };
00315 
00316 // Stub for interface IDLConsts
00317 class IDLConsts_stub:
00318   virtual public IDLConsts
00319 {
00320   public:
00321     virtual ~IDLConsts_stub();
00322   private:
00323     void operator=( const IDLConsts_stub& );
00324 };
00325 
00326 class IDLConsts_skel :
00327   virtual public StaticMethodDispatcher,
00328   virtual public IDLConsts
00329 {
00330   public:
00331     IDLConsts_skel( const CORBA::BOA::ReferenceData & = CORBA::BOA::ReferenceData() );
00332     virtual ~IDLConsts_skel();
00333     IDLConsts_skel( CORBA::Object_ptr obj );
00334     virtual bool dispatch( CORBA::StaticServerRequest_ptr __req, CORBA::Environment &_env );
00335     IDLConsts_ptr _this();
00336 
00337 };
00338 
00339 }
00340 
00341 
00342 #ifndef MICO_CONF_NO_POA
00343 
00344 #endif // MICO_CONF_NO_POA
00345 
00346 extern CORBA::StaticTypeInfo *_marshaller_Steelworks_Ring;
00347 
00348 extern CORBA::StaticTypeInfo *_marshaller_Steelworks_Stack;
00349 
00350 extern CORBA::StaticTypeInfo *_marshaller_Steelworks_Pallet;
00351 
00352 extern CORBA::StaticTypeInfo *_marshaller_Steelworks_Request;
00353 
00354 extern CORBA::StaticTypeInfo *_marshaller_Steelworks_Listener;
00355 
00356 extern CORBA::StaticTypeInfo *_marshaller_Steelworks_IDLConsts;
00357 
00358 extern CORBA::StaticTypeInfo *_marshaller__seq_Steelworks_Ring;
00359 
00360 extern CORBA::StaticTypeInfo *_marshaller__seq_Steelworks_Stack;
00361 
00362 #endif

Generated on Tue Apr 26 14:42:42 2005 for rollingmill by doxygen 1.3.6