00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Valuetype_Adapter_Impl.h 00006 * 00007 * $Id: Valuetype_Adapter_Impl.h 79209 2007-08-05 18:58:56Z johnnyw $ 00008 * 00009 * @author Jeff Parsons <j.parsons@vanderbilt.edu> 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef TAO_VALUETYPE_ADAPTER_IMPL_H 00015 #define TAO_VALUETYPE_ADAPTER_IMPL_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "ace/Service_Config.h" 00020 00021 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00022 # pragma once 00023 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00024 00025 #include "tao/Valuetype/valuetype_export.h" 00026 #include "tao/Valuetype/ValueFactory_Map.h" 00027 #include "tao/Valuetype_Adapter.h" 00028 00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 /** 00032 * @class TAO_Valuetype_Adapter_Impl 00033 * 00034 * @brief TAO_Valuetype_Adapter_Impl. 00035 * 00036 * Class that adapts various functions involving the Valuetype, 00037 * ValueFactory and AbstractInterface classes. This is a concrete class 00038 * implementating the pure virtual methods of TAO_Valuetype_Adapter 00039 */ 00040 class TAO_Valuetype_Export TAO_Valuetype_Adapter_Impl 00041 : public TAO_Valuetype_Adapter 00042 { 00043 public: 00044 00045 virtual ~TAO_Valuetype_Adapter_Impl (void); 00046 00047 virtual CORBA::Object_ptr abstractbase_to_object ( 00048 CORBA::AbstractBase_ptr); 00049 00050 virtual CORBA::Boolean stream_to_value (TAO_InputCDR &, 00051 CORBA::ValueBase *&); 00052 00053 virtual CORBA::Boolean stream_to_abstract_base ( 00054 TAO_InputCDR &, 00055 CORBA::AbstractBase_ptr &); 00056 00057 virtual CORBA::Long type_info_single (void) const; 00058 00059 virtual CORBA::Boolean is_type_info_implied (CORBA::Long) const; 00060 virtual CORBA::Boolean is_type_info_single (CORBA::Long) const; 00061 virtual CORBA::Boolean is_type_info_list (CORBA::Long) const; 00062 virtual CORBA::Boolean is_value_chunked (CORBA::Long) const; 00063 00064 virtual int vf_map_rebind (const char *, CORBA::ValueFactory &); 00065 00066 virtual int vf_map_unbind (const char *); 00067 00068 virtual CORBA::ValueFactory vf_map_find (const char *); 00069 00070 private: 00071 TAO_ValueFactory_Map map_; 00072 }; 00073 00074 TAO_END_VERSIONED_NAMESPACE_DECL 00075 00076 #include /**/ "ace/post.h" 00077 #endif /* TAO_VALUETYPE_ADAPTER_IMPL_H */