2017-11-01 20:14:23 +01:00
|
|
|
/******************************************************************************/
|
|
|
|
/* SRD - BINARY STORAGE - INLINE CODE *****************************************/
|
|
|
|
/******************************************************************************/
|
|
|
|
|
2017-11-01 23:21:01 +01:00
|
|
|
#ifndef _H_EBCL_INLINE_SRDBINARY
|
|
|
|
#define _H_EBCL_INLINE_SRDBINARY
|
|
|
|
#include <ebcl/SRDBinary.hh>
|
|
|
|
namespace ebcl {
|
2017-11-01 20:14:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
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
|
2017-11-01 23:21:01 +01:00
|
|
|
#endif // _H_EBCL_INLINE_SRDBINARY
|