ScriptingAccessC.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef _TAO_IDL__HOME_KALTAN_SRC_WWW_OROCOS_1_0_EXPORT_BUILD_OROCOS_RTT_1_12_1_BUILD_SRC_CORBA_SCRIPTINGACCESSC_H_
00032 #define _TAO_IDL__HOME_KALTAN_SRC_WWW_OROCOS_1_0_EXPORT_BUILD_OROCOS_RTT_1_12_1_BUILD_SRC_CORBA_SCRIPTINGACCESSC_H_
00033
00034
00035 #include "ace/config-all.h"
00036
00037 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00038 # pragma once
00039 #endif
00040
00041
00042 #include "rtt-corba-config.h"
00043 #include "tao/AnyTypeCode/AnyTypeCode_methods.h"
00044 #include "tao/ORB.h"
00045 #include "tao/SystemException.h"
00046 #include "tao/UserException.h"
00047 #include "tao/Basic_Types.h"
00048 #include "tao/ORB_Constants.h"
00049 #include "tao/Object.h"
00050 #include "tao/String_Manager_T.h"
00051 #include "tao/AnyTypeCode/BooleanSeqA.h"
00052 #include "tao/AnyTypeCode/CharSeqA.h"
00053 #include "tao/AnyTypeCode/DoubleSeqA.h"
00054 #include "tao/AnyTypeCode/FloatSeqA.h"
00055 #include "tao/AnyTypeCode/LongDoubleSeqA.h"
00056 #include "tao/AnyTypeCode/LongSeqA.h"
00057 #include "tao/AnyTypeCode/OctetSeqA.h"
00058 #include "tao/AnyTypeCode/ShortSeqA.h"
00059 #include "tao/AnyTypeCode/StringSeqA.h"
00060 #include "tao/AnyTypeCode/ULongSeqA.h"
00061 #include "tao/AnyTypeCode/UShortSeqA.h"
00062 #include "tao/AnyTypeCode/WCharSeqA.h"
00063 #include "tao/AnyTypeCode/WStringSeqA.h"
00064 #include "tao/AnyTypeCode/LongLongSeqA.h"
00065 #include "tao/AnyTypeCode/ULongLongSeqA.h"
00066 #include "tao/AnyTypeCode/PolicyA.h"
00067 #include "tao/AnyTypeCode/Policy_ManagerA.h"
00068 #include "tao/AnyTypeCode/Policy_CurrentA.h"
00069 #include "tao/AnyTypeCode/ServicesA.h"
00070 #include "tao/AnyTypeCode/ParameterModeA.h"
00071 #include "tao/AnyTypeCode/orb_typesA.h"
00072 #include "tao/AnyTypeCode/Typecode_typesA.h"
00073 #include "tao/AnyTypeCode/WrongTransactionA.h"
00074 #include "tao/Sequence_T.h"
00075 #include "tao/Objref_VarOut_T.h"
00076 #include "tao/Seq_Var_T.h"
00077 #include "tao/Seq_Out_T.h"
00078 #include "tao/VarOut_T.h"
00079 #include "tao/Versioned_Namespace.h"
00080
00081 #include "tao/BooleanSeqC.h"
00082 #include "tao/CharSeqC.h"
00083 #include "tao/DoubleSeqC.h"
00084 #include "tao/FloatSeqC.h"
00085 #include "tao/LongDoubleSeqC.h"
00086 #include "tao/LongSeqC.h"
00087 #include "tao/OctetSeqC.h"
00088 #include "tao/ShortSeqC.h"
00089 #include "tao/StringSeqC.h"
00090 #include "tao/ULongSeqC.h"
00091 #include "tao/UShortSeqC.h"
00092 #include "tao/WCharSeqC.h"
00093 #include "tao/WStringSeqC.h"
00094 #include "tao/LongLongSeqC.h"
00095 #include "tao/ULongLongSeqC.h"
00096 #include "tao/PolicyC.h"
00097 #include "tao/Policy_ManagerC.h"
00098 #include "tao/Policy_CurrentC.h"
00099 #include "tao/ServicesC.h"
00100 #include "tao/ParameterModeC.h"
00101 #include "tao/orb_typesC.h"
00102 #include "tao/Typecode_typesC.h"
00103 #include "tao/WrongTransactionC.h"
00104 #include "OperationsC.h"
00105
00106 #if defined (TAO_EXPORT_MACRO)
00107 #undef TAO_EXPORT_MACRO
00108 #endif
00109 #define TAO_EXPORT_MACRO RTT_CORBA_API
00110
00111
00112
00113 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00114
00115
00116
00117 namespace TAO
00118 {
00119 class Collocation_Proxy_Broker;
00120 template<typename T> class Narrow_Utils;
00121 }
00122 TAO_END_VERSIONED_NAMESPACE_DECL
00123
00124
00125
00126
00127
00128
00129 namespace RTT
00130 {
00131
00132
00133
00134
00135 namespace Corba
00136 {
00137
00138
00139
00140
00141 #if !defined (_RTT_CORBA_SCRIPTINGACCESS__VAR_OUT_CH_)
00142 #define _RTT_CORBA_SCRIPTINGACCESS__VAR_OUT_CH_
00143
00144 class ScriptingAccess;
00145 typedef ScriptingAccess *ScriptingAccess_ptr;
00146
00147 typedef
00148 TAO_Objref_Var_T<
00149 ScriptingAccess
00150 >
00151 ScriptingAccess_var;
00152
00153 typedef
00154 TAO_Objref_Out_T<
00155 ScriptingAccess
00156 >
00157 ScriptingAccess_out;
00158
00159 #endif
00160
00161
00162
00163
00164 #if !defined (_RTT_CORBA_SCRIPTINGACCESS_CH_)
00165 #define _RTT_CORBA_SCRIPTINGACCESS_CH_
00166
00167 class RTT_CORBA_API ScriptingAccess
00168 : public virtual ::CORBA::Object
00169 {
00170 public:
00171 friend class TAO::Narrow_Utils<ScriptingAccess>;
00172 typedef ScriptingAccess_ptr _ptr_type;
00173 typedef ScriptingAccess_var _var_type;
00174 typedef ScriptingAccess_out _out_type;
00175
00176
00177 static ScriptingAccess_ptr _duplicate (ScriptingAccess_ptr obj);
00178
00179 static void _tao_release (ScriptingAccess_ptr obj);
00180
00181 static ScriptingAccess_ptr _narrow (::CORBA::Object_ptr obj);
00182 static ScriptingAccess_ptr _unchecked_narrow (::CORBA::Object_ptr obj);
00183 static ScriptingAccess_ptr _nil (void)
00184 {
00185 return static_cast<ScriptingAccess_ptr> (0);
00186 }
00187
00188 static void _tao_any_destructor (void *);
00189
00190
00191
00192
00193 #if !defined (_RTT_CORBA_SCRIPTINGACCESS_LOADEXCEPTION_CH_)
00194 #define _RTT_CORBA_SCRIPTINGACCESS_LOADEXCEPTION_CH_
00195
00196 class RTT_CORBA_API LoadException : public ::CORBA::UserException
00197 {
00198 public:
00199
00200 TAO::String_Manager what;
00201 LoadException (void);
00202 LoadException (const LoadException &);
00203 ~LoadException (void);
00204
00205 LoadException &operator= (const LoadException &);
00206
00207 static void _tao_any_destructor (void *);
00208
00209 static LoadException *_downcast ( ::CORBA::Exception *);
00210 static const LoadException *_downcast ( ::CORBA::Exception const *);
00211
00212 static ::CORBA::Exception *_alloc (void);
00213
00214 virtual ::CORBA::Exception *_tao_duplicate (void) const;
00215
00216 virtual void _raise (void) const;
00217
00218 virtual void _tao_encode (TAO_OutputCDR &cdr) const;
00219 virtual void _tao_decode (TAO_InputCDR &cdr);
00220
00221
00222
00223
00224
00225 LoadException (
00226 const char * _tao_what
00227 );
00228
00229 virtual ::CORBA::TypeCode_ptr _tao_type (void) const;
00230 };
00231
00232
00233
00234
00235 static ::CORBA::TypeCode_ptr const _tc_LoadException;
00236
00237 #endif
00238
00239
00240
00241
00242 #if !defined (_RTT_CORBA_SCRIPTINGACCESS_PROGRAMNAMES_CH_)
00243 #define _RTT_CORBA_SCRIPTINGACCESS_PROGRAMNAMES_CH_
00244
00245 class ProgramNames;
00246
00247 typedef
00248 TAO_VarSeq_Var_T<
00249 ProgramNames
00250 >
00251 ProgramNames_var;
00252
00253 typedef
00254 TAO_Seq_Out_T<
00255 ProgramNames
00256 >
00257 ProgramNames_out;
00258
00259 class RTT_CORBA_API ProgramNames
00260 : public
00261 TAO::unbounded_basic_string_sequence<char>
00262 {
00263 public:
00264 ProgramNames (void);
00265 ProgramNames ( ::CORBA::ULong max);
00266 ProgramNames (
00267 ::CORBA::ULong max,
00268 ::CORBA::ULong length,
00269 ::CORBA::Char ** buffer,
00270 ::CORBA::Boolean release = false
00271 );
00272 ProgramNames (const ProgramNames &);
00273 virtual ~ProgramNames (void);
00274
00275 static void _tao_any_destructor (void *);
00276
00277 typedef ProgramNames_var _var_type;
00278 typedef ProgramNames_out _out_type;
00279
00280
00281 };
00282
00283 #endif
00284
00285
00286
00287
00288 static ::CORBA::TypeCode_ptr const _tc_ProgramNames;
00289
00290
00291
00292
00293 #if !defined (_RTT_CORBA_SCRIPTINGACCESS_STATEMACHINENAMES_CH_)
00294 #define _RTT_CORBA_SCRIPTINGACCESS_STATEMACHINENAMES_CH_
00295
00296 class StateMachineNames;
00297
00298 typedef
00299 TAO_VarSeq_Var_T<
00300 StateMachineNames
00301 >
00302 StateMachineNames_var;
00303
00304 typedef
00305 TAO_Seq_Out_T<
00306 StateMachineNames
00307 >
00308 StateMachineNames_out;
00309
00310 class RTT_CORBA_API StateMachineNames
00311 : public
00312 TAO::unbounded_basic_string_sequence<char>
00313 {
00314 public:
00315 StateMachineNames (void);
00316 StateMachineNames ( ::CORBA::ULong max);
00317 StateMachineNames (
00318 ::CORBA::ULong max,
00319 ::CORBA::ULong length,
00320 ::CORBA::Char ** buffer,
00321 ::CORBA::Boolean release = false
00322 );
00323 StateMachineNames (const StateMachineNames &);
00324 virtual ~StateMachineNames (void);
00325
00326 static void _tao_any_destructor (void *);
00327
00328 typedef StateMachineNames_var _var_type;
00329 typedef StateMachineNames_out _out_type;
00330
00331
00332 };
00333
00334 #endif
00335
00336
00337
00338
00339 static ::CORBA::TypeCode_ptr const _tc_StateMachineNames;
00340
00341
00342
00343
00344 virtual ::CORBA::Long execute (
00345 const char * code);
00346
00347
00348
00349
00350 virtual ::RTT::Corba::Command_ptr getCommand (
00351 ::CORBA::Long ticket);
00352
00353
00354
00355
00356 virtual void loadPrograms (
00357 const char * code,
00358 const char * filename);
00359
00360
00361
00362
00363 virtual void unloadProgram (
00364 const char * name);
00365
00366
00367
00368
00369 virtual ::CORBA::Boolean hasProgram (
00370 const char * name);
00371
00372
00373
00374
00375 virtual ::RTT::Corba::ScriptingAccess::ProgramNames * getPrograms (
00376 void);
00377
00378
00379
00380
00381 virtual ::CORBA::Long getProgramLine (
00382 const char * name);
00383
00384
00385
00386
00387 virtual char * getProgramText (
00388 const char * name);
00389
00390
00391
00392
00393 virtual char * getProgramStatus (
00394 const char * name);
00395
00396
00397
00398
00399 virtual void loadStateMachines (
00400 const char * code,
00401 const char * filename);
00402
00403
00404
00405
00406 virtual void unloadStateMachine (
00407 const char * name);
00408
00409
00410
00411
00412 virtual ::CORBA::Boolean hasStateMachine (
00413 const char * name);
00414
00415
00416
00417
00418 virtual ::RTT::Corba::ScriptingAccess::StateMachineNames * getStateMachines (
00419 void);
00420
00421
00422
00423
00424 virtual char * getStateMachineText (
00425 const char * name);
00426
00427
00428
00429
00430 virtual char * getStateMachineStatus (
00431 const char * name);
00432
00433
00434
00435
00436 virtual ::CORBA::Long getStateMachineLine (
00437 const char * name);
00438
00439
00440
00441
00442 virtual char * getCurrentState (
00443 const char * name);
00444
00445
00446
00447
00448 virtual ::CORBA::Boolean _is_a (const char *type_id);
00449 virtual const char* _interface_repository_id (void) const;
00450 virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
00451 private:
00452 TAO::Collocation_Proxy_Broker *the_TAO_ScriptingAccess_Proxy_Broker_;
00453
00454 protected:
00455
00456 ScriptingAccess (void);
00457
00458
00459
00460 virtual void RTT_Corba_ScriptingAccess_setup_collocation (void);
00461
00462
00463 ScriptingAccess (
00464 IOP::IOR *ior,
00465 TAO_ORB_Core *orb_core = 0);
00466
00467
00468 ScriptingAccess (
00469 TAO_Stub *objref,
00470 ::CORBA::Boolean _tao_collocated = false,
00471 TAO_Abstract_ServantBase *servant = 0,
00472 TAO_ORB_Core *orb_core = 0);
00473
00474 virtual ~ScriptingAccess (void);
00475
00476 private:
00477
00478 ScriptingAccess (const ScriptingAccess &);
00479
00480 void operator= (const ScriptingAccess &);
00481 };
00482
00483 #endif
00484
00485
00486
00487
00488 extern RTT_CORBA_API ::CORBA::TypeCode_ptr const _tc_ScriptingAccess;
00489
00490
00491
00492
00493 }
00494
00495
00496
00497
00498 }
00499
00500
00501
00502
00503
00504
00505 extern RTT_CORBA_API
00506 TAO::Collocation_Proxy_Broker *
00507 (*RTT_Corba__TAO_ScriptingAccess_Proxy_Broker_Factory_function_pointer) (
00508 ::CORBA::Object_ptr obj
00509 );
00510
00511
00512
00513
00514 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00515
00516
00517 namespace TAO
00518 {
00519
00520 #if !defined (_RTT_CORBA_SCRIPTINGACCESS__TRAITS_)
00521 #define _RTT_CORBA_SCRIPTINGACCESS__TRAITS_
00522
00523 template<>
00524 struct RTT_CORBA_API Objref_Traits< ::RTT::Corba::ScriptingAccess>
00525 {
00526 static ::RTT::Corba::ScriptingAccess_ptr duplicate (
00527 ::RTT::Corba::ScriptingAccess_ptr p
00528 );
00529 static void release (
00530 ::RTT::Corba::ScriptingAccess_ptr p
00531 );
00532 static ::RTT::Corba::ScriptingAccess_ptr nil (void);
00533 static ::CORBA::Boolean marshal (
00534 const ::RTT::Corba::ScriptingAccess_ptr p,
00535 TAO_OutputCDR & cdr
00536 );
00537 };
00538
00539 #endif
00540 }
00541 TAO_END_VERSIONED_NAMESPACE_DECL
00542
00543
00544
00545
00546
00547
00548
00549
00550 #if defined (ACE_ANY_OPS_USE_NAMESPACE)
00551
00552 namespace RTT
00553 {
00554
00555 namespace Corba
00556 {
00557 RTT_CORBA_API void operator<<= ( ::CORBA::Any &, ScriptingAccess_ptr);
00558 RTT_CORBA_API void operator<<= ( ::CORBA::Any &, ScriptingAccess_ptr *);
00559 RTT_CORBA_API ::CORBA::Boolean operator>>= (const ::CORBA::Any &, ScriptingAccess_ptr &);
00560 }
00561 }
00562
00563 #else
00564
00565
00566 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00567
00568 RTT_CORBA_API void operator<<= (::CORBA::Any &, RTT::Corba::ScriptingAccess_ptr);
00569 RTT_CORBA_API void operator<<= (::CORBA::Any &, RTT::Corba::ScriptingAccess_ptr *);
00570 RTT_CORBA_API ::CORBA::Boolean operator>>= (const ::CORBA::Any &, RTT::Corba::ScriptingAccess_ptr &);
00571 TAO_END_VERSIONED_NAMESPACE_DECL
00572
00573
00574
00575 #endif
00576
00577
00578
00579 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00580
00581
00582
00583 RTT_CORBA_API void operator<<= (::CORBA::Any &, const RTT::Corba::ScriptingAccess::LoadException &);
00584 RTT_CORBA_API void operator<<= (::CORBA::Any &, RTT::Corba::ScriptingAccess::LoadException*);
00585 RTT_CORBA_API ::CORBA::Boolean operator>>= (const ::CORBA::Any &, RTT::Corba::ScriptingAccess::LoadException *&);
00586 RTT_CORBA_API ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const RTT::Corba::ScriptingAccess::LoadException *&);
00587 TAO_END_VERSIONED_NAMESPACE_DECL
00588
00589
00590
00591
00592
00593
00594
00595 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00596
00597 RTT_CORBA_API void operator<<= ( ::CORBA::Any &, const RTT::Corba::ScriptingAccess::ProgramNames &);
00598 RTT_CORBA_API void operator<<= ( ::CORBA::Any &, RTT::Corba::ScriptingAccess::ProgramNames*);
00599 RTT_CORBA_API ::CORBA::Boolean operator>>= (const ::CORBA::Any &, RTT::Corba::ScriptingAccess::ProgramNames *&);
00600 RTT_CORBA_API ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const RTT::Corba::ScriptingAccess::ProgramNames *&);
00601 TAO_END_VERSIONED_NAMESPACE_DECL
00602
00603
00604
00605
00606
00607
00608
00609 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00610
00611 RTT_CORBA_API void operator<<= ( ::CORBA::Any &, const RTT::Corba::ScriptingAccess::StateMachineNames &);
00612 RTT_CORBA_API void operator<<= ( ::CORBA::Any &, RTT::Corba::ScriptingAccess::StateMachineNames*);
00613 RTT_CORBA_API ::CORBA::Boolean operator>>= (const ::CORBA::Any &, RTT::Corba::ScriptingAccess::StateMachineNames *&);
00614 RTT_CORBA_API ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const RTT::Corba::ScriptingAccess::StateMachineNames *&);
00615 TAO_END_VERSIONED_NAMESPACE_DECL
00616
00617
00618
00619
00620
00621
00622 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00623
00624 RTT_CORBA_API ::CORBA::Boolean operator<< (TAO_OutputCDR &, const RTT::Corba::ScriptingAccess_ptr );
00625 RTT_CORBA_API ::CORBA::Boolean operator>> (TAO_InputCDR &, RTT::Corba::ScriptingAccess_ptr &);
00626
00627 TAO_END_VERSIONED_NAMESPACE_DECL
00628
00629
00630
00631
00632
00633 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00634
00635
00636
00637 RTT_CORBA_API ::CORBA::Boolean operator<< (TAO_OutputCDR &, const RTT::Corba::ScriptingAccess::LoadException &);
00638 RTT_CORBA_API ::CORBA::Boolean operator>> (TAO_InputCDR &, RTT::Corba::ScriptingAccess::LoadException &);
00639
00640 TAO_END_VERSIONED_NAMESPACE_DECL
00641
00642
00643
00644
00645
00646
00647 #if !defined _TAO_CDR_OP_RTT_Corba_ScriptingAccess_ProgramNames_H_
00648 #define _TAO_CDR_OP_RTT_Corba_ScriptingAccess_ProgramNames_H_
00649 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00650
00651
00652
00653 RTT_CORBA_API ::CORBA::Boolean operator<< (
00654 TAO_OutputCDR &strm,
00655 const RTT::Corba::ScriptingAccess::ProgramNames &_tao_sequence
00656 );
00657 RTT_CORBA_API ::CORBA::Boolean operator>> (
00658 TAO_InputCDR &strm,
00659 RTT::Corba::ScriptingAccess::ProgramNames &_tao_sequence
00660 );
00661 TAO_END_VERSIONED_NAMESPACE_DECL
00662
00663
00664
00665 #endif
00666
00667
00668
00669
00670 #if !defined _TAO_CDR_OP_RTT_Corba_ScriptingAccess_StateMachineNames_H_
00671 #define _TAO_CDR_OP_RTT_Corba_ScriptingAccess_StateMachineNames_H_
00672 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00673
00674
00675
00676 RTT_CORBA_API ::CORBA::Boolean operator<< (
00677 TAO_OutputCDR &strm,
00678 const RTT::Corba::ScriptingAccess::StateMachineNames &_tao_sequence
00679 );
00680 RTT_CORBA_API ::CORBA::Boolean operator>> (
00681 TAO_InputCDR &strm,
00682 RTT::Corba::ScriptingAccess::StateMachineNames &_tao_sequence
00683 );
00684 TAO_END_VERSIONED_NAMESPACE_DECL
00685
00686
00687
00688 #endif
00689
00690
00691
00692 #if defined (__ACE_INLINE__)
00693 #include "ScriptingAccessC.inl"
00694 #endif
00695
00696 #endif
00697
00698