80 lines
1.9 KiB
C++
80 lines
1.9 KiB
C++
/******************************************************************************/
|
|
/* SRD - INPUT AND OUTPUT - INLINE CODE ***************************************/
|
|
/******************************************************************************/
|
|
|
|
#ifndef _H_EBCL_INLINE_SRDIO
|
|
#define _H_EBCL_INLINE_SRDIO
|
|
#include <ebcl/SRDIO.hh>
|
|
namespace ebcl {
|
|
|
|
/*= A_SRDWriter ==============================================================*/
|
|
|
|
inline A_SRDWriter::~A_SRDWriter( )
|
|
{ }
|
|
|
|
|
|
/*= A_SRDReaderTarget ========================================================*/
|
|
|
|
inline A_SRDReaderTarget::~A_SRDReaderTarget( )
|
|
{ }
|
|
|
|
|
|
/*= A_SRDReader ==============================================================*/
|
|
|
|
inline A_SRDReader::A_SRDReader( A_SRDReaderTarget& target )
|
|
: target_( target )
|
|
{ }
|
|
|
|
inline A_SRDReader::~A_SRDReader( )
|
|
{ }
|
|
|
|
|
|
/*= X_SRDWriterError =========================================================*/
|
|
|
|
inline X_SRDWriterError::X_SRDWriterError( char const* msg ) noexcept
|
|
: std::exception( ) , msg_( msg )
|
|
{ }
|
|
|
|
|
|
/*= T_SRDReaderTargetHelper ==================================================*/
|
|
|
|
inline T_SRDReaderTargetHelper::T_SRDReaderTargetHelper( A_SRDReaderTarget& target , T_SRDErrors& errors )
|
|
: target_( target ) , errors_( errors )
|
|
{
|
|
target_.start( errors_ );
|
|
}
|
|
|
|
inline T_SRDReaderTargetHelper::~T_SRDReaderTargetHelper( )
|
|
{
|
|
target_.end( errors_ );
|
|
}
|
|
|
|
|
|
/*= T_SRDMemoryTarget ========================================================*/
|
|
|
|
inline void T_SRDMemoryTarget::clearFlushToken(
|
|
bool clearIt ) noexcept
|
|
{
|
|
clearFlushToken_ = clearIt;
|
|
}
|
|
|
|
inline bool T_SRDMemoryTarget::clearFlushToken( ) const noexcept
|
|
{
|
|
return clearFlushToken_;
|
|
}
|
|
|
|
inline T_SRDList const& T_SRDMemoryTarget::list( ) const
|
|
{
|
|
return list_.list( );
|
|
}
|
|
|
|
inline bool T_SRDMemoryTarget::complete( ) const
|
|
{
|
|
return current_ != nullptr && stack_.size( ) == 0 && list_.list( ).size( ) != 0;
|
|
}
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
#endif // _H_EBCL_INLINE_SRDIO
|