Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JIO::JBinaryWriterObjectOutput< T, true > Class Template Reference

Implementation of object output for binary stream compatible data types. More...

#include <JBinaryFileWriter.hh>

Inheritance diagram for JIO::JBinaryWriterObjectOutput< T, true >:
JIO::JWriterObjectOutput< T > JLANG::JObjectOutput< T >

Public Member Functions

virtual bool put (const T &object) override
 Object output.
 

Protected Member Functions

 JBinaryWriterObjectOutput (JWriter &writer)
 Constructor.
 

Private Member Functions

bool put (const T &object, JLANG::JBool< true >)
 
bool put (const T &object, JLANG::JBool< false >)
 

Private Attributes

JWriterout
 

Detailed Description

template<class T>
class JIO::JBinaryWriterObjectOutput< T, true >

Implementation of object output for binary stream compatible data types.

This class implements the JLANG::JObjectOutput interface.

Definition at line 44 of file JBinaryFileWriter.hh.

Constructor & Destructor Documentation

◆ JBinaryWriterObjectOutput()

template<class T >
JIO::JBinaryWriterObjectOutput< T, true >::JBinaryWriterObjectOutput ( JWriter & writer)
inlineprotected

Constructor.

Parameters
writerJWriter output

Definition at line 53 of file JBinaryFileWriter.hh.

53 :
55 {}
JWriterObjectOutput(JWriter &writer)
Constructor.

Member Function Documentation

◆ put() [1/3]

template<class T >
virtual bool JIO::JWriterObjectOutput< T >::put ( const T & object)
inlineoverridevirtualinherited

Object output.

Parameters
objectobject
Returns
true if OK; else false

Implements JLANG::JObjectOutput< T >.

Definition at line 52 of file JWriterObjectOutput.hh.

53 {
55 }
virtual bool put(const T &object) override
Object output.
Auxiliary template class for type bool.
Definition JBool.hh:21
Template class test for polymorphism.

◆ put() [2/3]

template<class T >
bool JIO::JWriterObjectOutput< T >::put ( const T & object,
JLANG::JBool< true >  )
inlineprivateinherited

Definition at line 58 of file JWriterObjectOutput.hh.

58{ return (bool) object.write(out); }

◆ put() [3/3]

template<class T >
bool JIO::JWriterObjectOutput< T >::put ( const T & object,
JLANG::JBool< false >  )
inlineprivateinherited

Definition at line 59 of file JWriterObjectOutput.hh.

59{ return (bool) (out << object); }

Member Data Documentation

◆ out

template<class T >
JWriter& JIO::JWriterObjectOutput< T >::out
privateinherited

Definition at line 61 of file JWriterObjectOutput.hh.


The documentation for this class was generated from the following file: