00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Storable.inl 00006 * 00007 * $Id: Storable.inl 77064 2007-02-12 19:24:43Z johnnyw $ 00008 * 00009 * @author Bruce Trask <trask_b@ociweb.com> 00010 * @author Chanaka Liyanaarachchi <chanaka@ociweb.com> 00011 */ 00012 //============================================================================= 00013 00014 00015 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00016 00017 ACE_INLINE void 00018 TAO_NS_Persistence_Header::size (unsigned int size) 00019 { 00020 this->size_ = size; 00021 } 00022 00023 ACE_INLINE unsigned int 00024 TAO_NS_Persistence_Header::size () const 00025 { 00026 return this->size_; 00027 } 00028 00029 ACE_INLINE void 00030 TAO_NS_Persistence_Header::destroyed (int flag) 00031 { 00032 this->destroyed_ = flag; 00033 } 00034 00035 ACE_INLINE int 00036 TAO_NS_Persistence_Header::destroyed () const 00037 { 00038 return this->destroyed_; 00039 } 00040 00041 00042 ACE_INLINE TAO_NS_Persistence_Record::Record_Type 00043 TAO_NS_Persistence_Record::type () const 00044 { 00045 return this->type_; 00046 } 00047 00048 ACE_INLINE void 00049 TAO_NS_Persistence_Record::type (Record_Type type) 00050 { 00051 this->type_ = type; 00052 } 00053 00054 ACE_INLINE ACE_CString 00055 TAO_NS_Persistence_Record::id () const 00056 { 00057 return this->id_; 00058 } 00059 00060 ACE_INLINE void 00061 TAO_NS_Persistence_Record::id (const ACE_CString& id) 00062 { 00063 this->id_ = id; 00064 } 00065 00066 ACE_INLINE ACE_CString 00067 TAO_NS_Persistence_Record::kind () const 00068 { 00069 return this->kind_; 00070 } 00071 00072 ACE_INLINE void 00073 TAO_NS_Persistence_Record::kind (const ACE_CString& kind) 00074 { 00075 this->kind_ = kind; 00076 } 00077 00078 ACE_INLINE ACE_CString 00079 TAO_NS_Persistence_Record::ref () const 00080 { 00081 return this->ref_; 00082 } 00083 00084 ACE_INLINE void 00085 TAO_NS_Persistence_Record::ref (const ACE_CString& ref) 00086 { 00087 this->ref_ = ref; 00088 } 00089 00090 ACE_INLINE void 00091 TAO_NS_Persistence_Global::counter (unsigned int counter) 00092 { 00093 this->counter_ = counter; 00094 } 00095 00096 ACE_INLINE unsigned int 00097 TAO_NS_Persistence_Global::counter () const 00098 { 00099 return this->counter_; 00100 } 00101 00102 00103 ACE_INLINE 00104 TAO_Naming_Service_Persistence_Factory::TAO_Naming_Service_Persistence_Factory() 00105 { 00106 } 00107 00108 ACE_INLINE 00109 TAO_Naming_Service_Persistence_Factory::~TAO_Naming_Service_Persistence_Factory() 00110 { 00111 } 00112 00113 ACE_INLINE 00114 TAO_Storable_Base::TAO_Storable_Base() 00115 : state_ (goodbit) 00116 { 00117 } 00118 00119 ACE_INLINE 00120 TAO_Storable_Base::~TAO_Storable_Base() 00121 { 00122 } 00123 00124 ACE_INLINE void 00125 TAO_Storable_Base::clear (TAO_Storable_Base::Storable_State state) 00126 { 00127 this->state_ = state; 00128 } 00129 00130 ACE_INLINE void 00131 TAO_Storable_Base::setstate (TAO_Storable_Base::Storable_State state) 00132 { 00133 this->clear (static_cast <TAO_Storable_Base::Storable_State> ( 00134 this->rdstate () | state)); 00135 } 00136 00137 ACE_INLINE TAO_Storable_Base::Storable_State 00138 TAO_Storable_Base::rdstate (void) const 00139 { 00140 return this->state_; 00141 } 00142 00143 ACE_INLINE bool 00144 TAO_Storable_Base::good (void) const 00145 { 00146 return (this->state_ == goodbit); 00147 } 00148 00149 ACE_INLINE bool 00150 TAO_Storable_Base::bad (void) const 00151 { 00152 return (this->state_ & badbit); 00153 } 00154 00155 ACE_INLINE bool 00156 TAO_Storable_Base::eof (void) const 00157 { 00158 return (this->state_ & eofbit); 00159 } 00160 00161 ACE_INLINE bool 00162 TAO_Storable_Base::fail (void) const 00163 { 00164 return (this->state_ & failbit); 00165 } 00166 00167 TAO_END_VERSIONED_NAMESPACE_DECL