#include <Storable.h>
Inheritance diagram for TAO_Storable_Base:
Public Types | |
goodbit = 0 | |
badbit = 1 | |
eofbit = 2 | |
failbit = 4 | |
enum | Storable_State { goodbit = 0, badbit = 1, eofbit = 2, failbit = 4 } |
Public Member Functions | |
TAO_Storable_Base () | |
virtual | ~TAO_Storable_Base () |
virtual void | remove ()=0 |
virtual int | exists ()=0 |
virtual int | open ()=0 |
virtual int | close ()=0 |
virtual int | flock (int whence, int start, int len)=0 |
virtual int | funlock (int whence, int start, int len)=0 |
virtual time_t | last_changed (void)=0 |
void | clear (Storable_State state=goodbit) |
void | setstate (Storable_State state) |
Storable_State | rdstate (void) const |
bool | good (void) const |
bool | bad (void) const |
bool | eof (void) const |
bool | fail (void) const |
virtual TAO_Storable_Base & | operator<< (const TAO_NS_Persistence_Header &header)=0 |
virtual TAO_Storable_Base & | operator<< (const TAO_NS_Persistence_Record &record)=0 |
virtual TAO_Storable_Base & | operator>> (TAO_NS_Persistence_Header &header)=0 |
virtual TAO_Storable_Base & | operator>> (TAO_NS_Persistence_Record &record)=0 |
virtual TAO_Storable_Base & | operator<< (const TAO_NS_Persistence_Global &global)=0 |
virtual TAO_Storable_Base & | operator>> (TAO_NS_Persistence_Global &global)=0 |
Private Attributes | |
Storable_State | state_ |
Definition at line 81 of file Storable.h.
ACE_INLINE TAO_Storable_Base::TAO_Storable_Base | ( | ) |
ACE_INLINE TAO_Storable_Base::~TAO_Storable_Base | ( | ) | [virtual] |
ACE_INLINE bool TAO_Storable_Base::bad | ( | void | ) | const |
Definition at line 150 of file Storable.inl.
References badbit.
00151 { 00152 return (this->state_ & badbit); 00153 }
ACE_INLINE void TAO_Storable_Base::clear | ( | Storable_State | state = goodbit |
) |
Definition at line 125 of file Storable.inl.
References state_.
Referenced by TAO_Storable_Naming_Context::load_map(), and setstate().
00126 { 00127 this->state_ = state; 00128 }
virtual int TAO_Storable_Base::close | ( | ) | [pure virtual] |
Implemented in TAO_NS_FlatFileStream.
Referenced by TAO_Storable_Naming_Context::File_Open_Lock_and_Check::File_Open_Lock_and_Check().
ACE_INLINE bool TAO_Storable_Base::eof | ( | void | ) | const |
Definition at line 156 of file Storable.inl.
References eofbit.
00157 { 00158 return (this->state_ & eofbit); 00159 }
virtual int TAO_Storable_Base::exists | ( | ) | [pure virtual] |
Implemented in TAO_NS_FlatFileStream.
ACE_INLINE bool TAO_Storable_Base::fail | ( | void | ) | const |
Definition at line 162 of file Storable.inl.
References failbit.
00163 { 00164 return (this->state_ & failbit); 00165 }
virtual int TAO_Storable_Base::flock | ( | int | whence, | |
int | start, | |||
int | len | |||
) | [pure virtual] |
Implemented in TAO_NS_FlatFileStream.
virtual int TAO_Storable_Base::funlock | ( | int | whence, | |
int | start, | |||
int | len | |||
) | [pure virtual] |
Implemented in TAO_NS_FlatFileStream.
ACE_INLINE bool TAO_Storable_Base::good | ( | void | ) | const |
Definition at line 144 of file Storable.inl.
References goodbit.
Referenced by TAO_Storable_Naming_Context::load_map().
00145 { 00146 return (this->state_ == goodbit); 00147 }
virtual time_t TAO_Storable_Base::last_changed | ( | void | ) | [pure virtual] |
Implemented in TAO_NS_FlatFileStream.
Referenced by TAO_Storable_Naming_Context::File_Open_Lock_and_Check::File_Open_Lock_and_Check().
virtual int TAO_Storable_Base::open | ( | ) | [pure virtual] |
Implemented in TAO_NS_FlatFileStream.
Referenced by TAO_Storable_Naming_Context::File_Open_Lock_and_Check::File_Open_Lock_and_Check().
virtual TAO_Storable_Base& TAO_Storable_Base::operator<< | ( | const TAO_NS_Persistence_Global & | global | ) | [pure virtual] |
Implemented in TAO_NS_FlatFileStream.
virtual TAO_Storable_Base& TAO_Storable_Base::operator<< | ( | const TAO_NS_Persistence_Record & | record | ) | [pure virtual] |
Implemented in TAO_NS_FlatFileStream.
virtual TAO_Storable_Base& TAO_Storable_Base::operator<< | ( | const TAO_NS_Persistence_Header & | header | ) | [pure virtual] |
Implemented in TAO_NS_FlatFileStream.
virtual TAO_Storable_Base& TAO_Storable_Base::operator>> | ( | TAO_NS_Persistence_Global & | global | ) | [pure virtual] |
Implemented in TAO_NS_FlatFileStream.
virtual TAO_Storable_Base& TAO_Storable_Base::operator>> | ( | TAO_NS_Persistence_Record & | record | ) | [pure virtual] |
Implemented in TAO_NS_FlatFileStream.
virtual TAO_Storable_Base& TAO_Storable_Base::operator>> | ( | TAO_NS_Persistence_Header & | header | ) | [pure virtual] |
Implemented in TAO_NS_FlatFileStream.
ACE_INLINE TAO_Storable_Base::Storable_State TAO_Storable_Base::rdstate | ( | void | ) | const |
Definition at line 138 of file Storable.inl.
References state_.
00139 { 00140 return this->state_; 00141 }
virtual void TAO_Storable_Base::remove | ( | ) | [pure virtual] |
Implemented in TAO_NS_FlatFileStream.
ACE_INLINE void TAO_Storable_Base::setstate | ( | Storable_State | state | ) |
Definition at line 131 of file Storable.inl.
References clear().
Referenced by TAO_NS_FlatFileStream::operator>>().
00132 { 00133 this->clear (static_cast <TAO_Storable_Base::Storable_State> ( 00134 this->rdstate () | state)); 00135 }
Storable_State TAO_Storable_Base::state_ [private] |