AttributesC.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_8_5_BUILD_SRC_CORBA_ATTRIBUTESC_H_
00032 #define _TAO_IDL__HOME_KALTAN_SRC_WWW_OROCOS_1_0_EXPORT_BUILD_OROCOS_RTT_1_8_5_BUILD_SRC_CORBA_ATTRIBUTESC_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 "tao/AnyTypeCode/AnyTypeCode_methods.h"
00043 #include "tao/ORB.h"
00044 #include "tao/SystemException.h"
00045 #include "tao/Basic_Types.h"
00046 #include "tao/ORB_Constants.h"
00047 #include "tao/Object.h"
00048 #include "tao/String_Manager_T.h"
00049 #include "tao/Sequence_T.h"
00050 #include "tao/Objref_VarOut_T.h"
00051 #include "tao/Seq_Var_T.h"
00052 #include "tao/Seq_Out_T.h"
00053 #include "tao/VarOut_T.h"
00054 #include "tao/Versioned_Namespace.h"
00055
00056 #include "OperationsC.h"
00057
00058 #if defined (TAO_EXPORT_MACRO)
00059 #undef TAO_EXPORT_MACRO
00060 #endif
00061 #define TAO_EXPORT_MACRO
00062
00063
00064
00065 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00066
00067
00068
00069 namespace TAO
00070 {
00071 class Collocation_Proxy_Broker;
00072 template<typename T> class Narrow_Utils;
00073 }
00074 TAO_END_VERSIONED_NAMESPACE_DECL
00075
00076
00077
00078
00079
00080
00081 namespace RTT
00082 {
00083
00084
00085
00086
00087 namespace Corba
00088 {
00089
00090
00091
00092
00093 #if !defined (_RTT_CORBA_ATTRIBUTEINTERFACE__VAR_OUT_CH_)
00094 #define _RTT_CORBA_ATTRIBUTEINTERFACE__VAR_OUT_CH_
00095
00096 class AttributeInterface;
00097 typedef AttributeInterface *AttributeInterface_ptr;
00098
00099 typedef
00100 TAO_Objref_Var_T<
00101 AttributeInterface
00102 >
00103 AttributeInterface_var;
00104
00105 typedef
00106 TAO_Objref_Out_T<
00107 AttributeInterface
00108 >
00109 AttributeInterface_out;
00110
00111 #endif
00112
00113
00114
00115
00116 #if !defined (_RTT_CORBA_ATTRIBUTEINTERFACE_CH_)
00117 #define _RTT_CORBA_ATTRIBUTEINTERFACE_CH_
00118
00119 class AttributeInterface
00120 : public virtual ::CORBA::Object
00121 {
00122 public:
00123 friend class TAO::Narrow_Utils<AttributeInterface>;
00124 typedef AttributeInterface_ptr _ptr_type;
00125 typedef AttributeInterface_var _var_type;
00126 typedef AttributeInterface_out _out_type;
00127
00128
00129 static AttributeInterface_ptr _duplicate (AttributeInterface_ptr obj);
00130
00131 static void _tao_release (AttributeInterface_ptr obj);
00132
00133 static AttributeInterface_ptr _narrow (::CORBA::Object_ptr obj);
00134 static AttributeInterface_ptr _unchecked_narrow (::CORBA::Object_ptr obj);
00135 static AttributeInterface_ptr _nil (void)
00136 {
00137 return static_cast<AttributeInterface_ptr> (0);
00138 }
00139
00140 static void _tao_any_destructor (void *);
00141
00142
00143
00144
00145 struct Property;
00146
00147 typedef
00148 TAO_Var_Var_T<
00149 Property
00150 >
00151 Property_var;
00152
00153 typedef
00154 TAO_Out_T<
00155 Property
00156 >
00157 Property_out;
00158
00159
00160
00161
00162 struct Property
00163 {
00164 typedef Property_var _var_type;
00165 typedef Property_out _out_type;
00166
00167 static void _tao_any_destructor (void *);
00168 TAO::String_Manager name;
00169 TAO::String_Manager description;
00170 };
00171
00172
00173
00174
00175 static ::CORBA::TypeCode_ptr const _tc_Property;
00176
00177
00178
00179
00180 #if !defined (_RTT_CORBA_ATTRIBUTEINTERFACE_PROPERTYNAMES_CH_)
00181 #define _RTT_CORBA_ATTRIBUTEINTERFACE_PROPERTYNAMES_CH_
00182
00183 class PropertyNames;
00184
00185 typedef
00186 TAO_VarSeq_Var_T<
00187 PropertyNames
00188 >
00189 PropertyNames_var;
00190
00191 typedef
00192 TAO_Seq_Out_T<
00193 PropertyNames
00194 >
00195 PropertyNames_out;
00196
00197 class PropertyNames
00198 : public
00199 TAO::unbounded_value_sequence<
00200 Property
00201 >
00202 {
00203 public:
00204 PropertyNames (void);
00205 PropertyNames ( ::CORBA::ULong max);
00206 PropertyNames (
00207 ::CORBA::ULong max,
00208 ::CORBA::ULong length,
00209 Property* buffer,
00210 ::CORBA::Boolean release = false
00211 );
00212 PropertyNames (const PropertyNames &);
00213 virtual ~PropertyNames (void);
00214
00215 static void _tao_any_destructor (void *);
00216
00217 typedef PropertyNames_var _var_type;
00218 typedef PropertyNames_out _out_type;
00219
00220
00221 };
00222
00223 #endif
00224
00225
00226
00227
00228 static ::CORBA::TypeCode_ptr const _tc_PropertyNames;
00229
00230
00231
00232
00233 #if !defined (_RTT_CORBA_ATTRIBUTEINTERFACE_ATTRIBUTENAMES_CH_)
00234 #define _RTT_CORBA_ATTRIBUTEINTERFACE_ATTRIBUTENAMES_CH_
00235
00236 class AttributeNames;
00237
00238 typedef
00239 TAO_VarSeq_Var_T<
00240 AttributeNames
00241 >
00242 AttributeNames_var;
00243
00244 typedef
00245 TAO_Seq_Out_T<
00246 AttributeNames
00247 >
00248 AttributeNames_out;
00249
00250 class AttributeNames
00251 : public
00252 TAO::unbounded_basic_string_sequence<char>
00253 {
00254 public:
00255 AttributeNames (void);
00256 AttributeNames ( ::CORBA::ULong max);
00257 AttributeNames (
00258 ::CORBA::ULong max,
00259 ::CORBA::ULong length,
00260 ::CORBA::Char ** buffer,
00261 ::CORBA::Boolean release = false
00262 );
00263 AttributeNames (const AttributeNames &);
00264 virtual ~AttributeNames (void);
00265
00266 static void _tao_any_destructor (void *);
00267
00268 typedef AttributeNames_var _var_type;
00269 typedef AttributeNames_out _out_type;
00270
00271
00272 };
00273
00274 #endif
00275
00276
00277
00278
00279 static ::CORBA::TypeCode_ptr const _tc_AttributeNames;
00280
00281
00282
00283
00284 virtual ::RTT::Corba::AttributeInterface::AttributeNames * getAttributeList (
00285 void);
00286
00287
00288
00289
00290 virtual ::RTT::Corba::AttributeInterface::PropertyNames * getPropertyList (
00291 void);
00292
00293
00294
00295
00296 virtual ::RTT::Corba::Expression_ptr getAttribute (
00297 const char * name);
00298
00299
00300
00301
00302 virtual ::RTT::Corba::Expression_ptr getProperty (
00303 const char * name);
00304
00305
00306
00307
00308 virtual ::CORBA::Boolean _is_a (const char *type_id);
00309 virtual const char* _interface_repository_id (void) const;
00310 virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
00311 private:
00312 TAO::Collocation_Proxy_Broker *the_TAO_AttributeInterface_Proxy_Broker_;
00313
00314 protected:
00315
00316 AttributeInterface (void);
00317
00318
00319
00320 virtual void RTT_Corba_AttributeInterface_setup_collocation (void);
00321
00322
00323 AttributeInterface (
00324 IOP::IOR *ior,
00325 TAO_ORB_Core *orb_core = 0);
00326
00327
00328 AttributeInterface (
00329 TAO_Stub *objref,
00330 ::CORBA::Boolean _tao_collocated = false,
00331 TAO_Abstract_ServantBase *servant = 0,
00332 TAO_ORB_Core *orb_core = 0);
00333
00334 virtual ~AttributeInterface (void);
00335
00336 private:
00337
00338 AttributeInterface (const AttributeInterface &);
00339
00340 void operator= (const AttributeInterface &);
00341 };
00342
00343 #endif
00344
00345
00346
00347
00348 extern ::CORBA::TypeCode_ptr const _tc_AttributeInterface;
00349
00350
00351
00352
00353 }
00354
00355
00356
00357
00358 }
00359
00360
00361
00362
00363
00364
00365 extern
00366 TAO::Collocation_Proxy_Broker *
00367 (*RTT_Corba__TAO_AttributeInterface_Proxy_Broker_Factory_function_pointer) (
00368 ::CORBA::Object_ptr obj
00369 );
00370
00371
00372
00373
00374 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00375
00376
00377 namespace TAO
00378 {
00379
00380 #if !defined (_RTT_CORBA_ATTRIBUTEINTERFACE__TRAITS_)
00381 #define _RTT_CORBA_ATTRIBUTEINTERFACE__TRAITS_
00382
00383 template<>
00384 struct Objref_Traits< ::RTT::Corba::AttributeInterface>
00385 {
00386 static ::RTT::Corba::AttributeInterface_ptr duplicate (
00387 ::RTT::Corba::AttributeInterface_ptr p
00388 );
00389 static void release (
00390 ::RTT::Corba::AttributeInterface_ptr p
00391 );
00392 static ::RTT::Corba::AttributeInterface_ptr nil (void);
00393 static ::CORBA::Boolean marshal (
00394 const ::RTT::Corba::AttributeInterface_ptr p,
00395 TAO_OutputCDR & cdr
00396 );
00397 };
00398
00399 #endif
00400 }
00401 TAO_END_VERSIONED_NAMESPACE_DECL
00402
00403
00404
00405
00406
00407
00408
00409
00410 #if defined (ACE_ANY_OPS_USE_NAMESPACE)
00411
00412 namespace RTT
00413 {
00414
00415 namespace Corba
00416 {
00417 void operator<<= ( ::CORBA::Any &, AttributeInterface_ptr);
00418 void operator<<= ( ::CORBA::Any &, AttributeInterface_ptr *);
00419 ::CORBA::Boolean operator>>= (const ::CORBA::Any &, AttributeInterface_ptr &);
00420 }
00421 }
00422
00423 #else
00424
00425
00426 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00427
00428 void operator<<= (::CORBA::Any &, RTT::Corba::AttributeInterface_ptr);
00429 void operator<<= (::CORBA::Any &, RTT::Corba::AttributeInterface_ptr *);
00430 ::CORBA::Boolean operator>>= (const ::CORBA::Any &, RTT::Corba::AttributeInterface_ptr &);
00431 TAO_END_VERSIONED_NAMESPACE_DECL
00432
00433
00434
00435 #endif
00436
00437
00438
00439
00440
00441 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00442
00443 void operator<<= (::CORBA::Any &, const RTT::Corba::AttributeInterface::Property &);
00444 void operator<<= (::CORBA::Any &, RTT::Corba::AttributeInterface::Property*);
00445 ::CORBA::Boolean operator>>= (const ::CORBA::Any &, RTT::Corba::AttributeInterface::Property *&);
00446 ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const RTT::Corba::AttributeInterface::Property *&);
00447 TAO_END_VERSIONED_NAMESPACE_DECL
00448
00449
00450
00451
00452
00453
00454
00455 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00456
00457 void operator<<= ( ::CORBA::Any &, const RTT::Corba::AttributeInterface::PropertyNames &);
00458 void operator<<= ( ::CORBA::Any &, RTT::Corba::AttributeInterface::PropertyNames*);
00459 ::CORBA::Boolean operator>>= (const ::CORBA::Any &, RTT::Corba::AttributeInterface::PropertyNames *&);
00460 ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const RTT::Corba::AttributeInterface::PropertyNames *&);
00461 TAO_END_VERSIONED_NAMESPACE_DECL
00462
00463
00464
00465
00466
00467
00468
00469 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00470
00471 void operator<<= ( ::CORBA::Any &, const RTT::Corba::AttributeInterface::AttributeNames &);
00472 void operator<<= ( ::CORBA::Any &, RTT::Corba::AttributeInterface::AttributeNames*);
00473 ::CORBA::Boolean operator>>= (const ::CORBA::Any &, RTT::Corba::AttributeInterface::AttributeNames *&);
00474 ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const RTT::Corba::AttributeInterface::AttributeNames *&);
00475 TAO_END_VERSIONED_NAMESPACE_DECL
00476
00477
00478
00479
00480
00481
00482 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00483
00484 ::CORBA::Boolean operator<< (TAO_OutputCDR &, const RTT::Corba::AttributeInterface_ptr );
00485 ::CORBA::Boolean operator>> (TAO_InputCDR &, RTT::Corba::AttributeInterface_ptr &);
00486
00487 TAO_END_VERSIONED_NAMESPACE_DECL
00488
00489
00490
00491
00492
00493
00494
00495 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00496
00497 ::CORBA::Boolean operator<< (TAO_OutputCDR &, const RTT::Corba::AttributeInterface::Property &);
00498 ::CORBA::Boolean operator>> (TAO_InputCDR &, RTT::Corba::AttributeInterface::Property &);
00499
00500 TAO_END_VERSIONED_NAMESPACE_DECL
00501
00502
00503
00504
00505
00506
00507 #if !defined _TAO_CDR_OP_RTT_Corba_AttributeInterface_PropertyNames_H_
00508 #define _TAO_CDR_OP_RTT_Corba_AttributeInterface_PropertyNames_H_
00509 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00510
00511
00512
00513 ::CORBA::Boolean operator<< (
00514 TAO_OutputCDR &strm,
00515 const RTT::Corba::AttributeInterface::PropertyNames &_tao_sequence
00516 );
00517 ::CORBA::Boolean operator>> (
00518 TAO_InputCDR &strm,
00519 RTT::Corba::AttributeInterface::PropertyNames &_tao_sequence
00520 );
00521 TAO_END_VERSIONED_NAMESPACE_DECL
00522
00523
00524
00525 #endif
00526
00527
00528
00529
00530 #if !defined _TAO_CDR_OP_RTT_Corba_AttributeInterface_AttributeNames_H_
00531 #define _TAO_CDR_OP_RTT_Corba_AttributeInterface_AttributeNames_H_
00532 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00533
00534
00535
00536 ::CORBA::Boolean operator<< (
00537 TAO_OutputCDR &strm,
00538 const RTT::Corba::AttributeInterface::AttributeNames &_tao_sequence
00539 );
00540 ::CORBA::Boolean operator>> (
00541 TAO_InputCDR &strm,
00542 RTT::Corba::AttributeInterface::AttributeNames &_tao_sequence
00543 );
00544 TAO_END_VERSIONED_NAMESPACE_DECL
00545
00546
00547
00548 #endif
00549
00550
00551
00552 #if defined (__ACE_INLINE__)
00553 #include "AttributesC.inl"
00554 #endif
00555
00556 #endif
00557
00558