corelib/include/ebcl/inline/SRDIO.hh

93 lines
2.1 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 T_SRDMemoryTarget& T_SRDMemoryTarget::clearFlushToken(
const bool clear ) noexcept
{
clearFlushToken_ = clear;
return *this;
}
inline bool T_SRDMemoryTarget::clearFlushToken( ) const noexcept
{
return clearFlushToken_;
}
inline T_SRDMemoryTarget& T_SRDMemoryTarget::clearComments(
const bool clear ) noexcept
{
clearComments_ = clear;
return *this;
}
inline bool T_SRDMemoryTarget::clearComments( ) const noexcept
{
return clearComments_;
}
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