Storable.inl

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

Generated on Thu Nov 9 13:57:03 2006 for TAO_CosNaming by doxygen 1.3.6