3 //=============================================================================
5 * @file Storable_Base.inl
7 * @author Bruce Trask <trask_b@ociweb.com>
8 * @author Chanaka Liyanaarachchi <chanaka@ociweb.com>
9 * @author Byron Harris <harrisb@ociweb.com>
11 //=============================================================================
13 #include "tao/Storable_Base.h"
15 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
18 TAO::Storable_Base::Storable_Base (bool use_backup, bool retry_ebadf)
19 : use_backup_ (use_backup)
20 , retry_on_ebadf_ (retry_ebadf)
26 TAO::Storable_Base::~Storable_Base ()
31 TAO::Storable_Base::clear (TAO::Storable_Base::Storable_State state)
37 TAO::Storable_Base::setstate (TAO::Storable_Base::Storable_State state)
39 this->clear (static_cast <TAO::Storable_Base::Storable_State> (
40 this->rdstate () | state));
43 ACE_INLINE TAO::Storable_Base::Storable_State
44 TAO::Storable_Base::rdstate () const
50 TAO::Storable_Base::good () const
52 return (this->state_ == goodbit);
56 TAO::Storable_Base::bad () const
58 return (this->state_ & badbit);
62 TAO::Storable_Base::eof () const
64 return (this->state_ & eofbit);
68 TAO::Storable_Base::fail () const
70 return (this->state_ & failbit);
73 TAO_END_VERSIONED_NAMESPACE_DECL