corelib/include/ebcl/inline/SRDBinary.hh

33 lines
977 B
C++

/******************************************************************************/
/* SRD - BINARY STORAGE - INLINE CODE *****************************************/
/******************************************************************************/
#ifndef _H_LW_LIB_INLINE_SRDBINARY
#define _H_LW_LIB_INLINE_SRDBINARY
#include <lw/lib/SRDBinary.hh>
namespace lw {
inline void SRDBinaryWriteTo( A_OutputStream& output , T_SRDList const& data )
{
T_SRDBinaryWriter( output ).start( ).putList( data ).end( );
}
/*= T_SRDBinaryReader ========================================================*/
inline T_SRDBinaryReader::T_SRDBinaryReader( A_SRDReaderTarget& target )
: A_SRDReader( target )
{ }
inline T_SRDList SRDBinaryReadFrom( T_String const& name , A_InputStream& input , bool structured )
{
T_SRDErrors errors;
T_SRDMemoryTarget mt( structured );
T_SRDBinaryReader( mt ).read( name , input );
return mt.list( );
}
} // namespace
#endif // _H_LW_LIB_INLINE_SRDBINARY