Jpp  15.0.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
JIO::JWriterObjectOutput< T > Class Template Reference

Implementation of object output using JIO::JWriter for single data type. More...

#include <JWriterObjectOutput.hh>

Inheritance diagram for JIO::JWriterObjectOutput< T >:
JLANG::JObjectOutput< T > JIO::JBinaryFileWriter< T > JSUPPORT::JDAQWriterObjectOutput< T, true >

Public Member Functions

 JWriterObjectOutput (JWriter &writer)
 Constructor. More...
 
virtual bool put (const T &object) override
 Object output. More...
 

Private Attributes

JWriterout
 

Detailed Description

template<class T>
class JIO::JWriterObjectOutput< T >

Implementation of object output using JIO::JWriter for single data type.

This class implements the JLANG::JObjectOutput interface.

Definition at line 30 of file JWriterObjectOutput.hh.

Constructor & Destructor Documentation

template<class T>
JIO::JWriterObjectOutput< T >::JWriterObjectOutput ( JWriter writer)
inline

Constructor.

Parameters
writerwriter output

Definition at line 39 of file JWriterObjectOutput.hh.

39  :
40  out(writer)
41  {}

Member Function Documentation

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

Object output.

Parameters
objectobject
Returns
true if OK; else false

Implements JLANG::JObjectOutput< T >.

Definition at line 50 of file JWriterObjectOutput.hh.

51  {
52  out << object;
53 
54  return (bool) out;
55  }

Member Data Documentation

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

Definition at line 58 of file JWriterObjectOutput.hh.


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