Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JSUPPORT::JMonteCarloStreamObjectOutput< Evt > Class Reference

Template specialisation of JMonteCarloStreamObjectOutput for Evt. More...

#include <JMonteCarloFileSupportkit.hh>

Inheritance diagram for JSUPPORT::JMonteCarloStreamObjectOutput< Evt >:
JLANG::JStreamObjectOutput< T > JLANG::JObjectOutput< T >

Public Member Functions

virtual bool put (const T &object) override
 Object output.
 
const std::string & getSeparator () const
 Get token separator.
 
void setSeparator (const std::string &sep)
 Set token separator.
 

Protected Member Functions

 JMonteCarloStreamObjectOutput (std::ostream &out)
 Constructor.
 

Private Attributes

std::ostream & __out
 
std::string __sep
 

Detailed Description

Template specialisation of JMonteCarloStreamObjectOutput for Evt.

This class provides for a ASCII formatted stream output without separator.

Definition at line 390 of file JMonteCarloFileSupportkit.hh.

Constructor & Destructor Documentation

◆ JMonteCarloStreamObjectOutput()

Constructor.

Parameters
outoutput stream

Definition at line 399 of file JMonteCarloFileSupportkit.hh.

399 :
401 {}
Template implementation of stream output for single data type.

Member Function Documentation

◆ put()

template<class T >
virtual bool JLANG::JStreamObjectOutput< T >::put ( const T & object)
inlineoverridevirtualinherited

Object output.

Parameters
objectobject
Returns
true if OK; else false

Implements JLANG::JObjectOutput< T >.

Definition at line 51 of file JStreamObjectOutput.hh.

52 {
53 __out << object << __sep;
54
55 return (bool) __out;
56 }

◆ getSeparator()

template<class T >
const std::string & JLANG::JStreamObjectOutput< T >::getSeparator ( ) const
inlineinherited

Get token separator.

Returns
separator

Definition at line 64 of file JStreamObjectOutput.hh.

65 {
66 return this->__sep;
67 }

◆ setSeparator()

template<class T >
void JLANG::JStreamObjectOutput< T >::setSeparator ( const std::string & sep)
inlineinherited

Set token separator.

Parameters
sepseparator

Definition at line 75 of file JStreamObjectOutput.hh.

76 {
77 this->__sep = sep;
78 }

Member Data Documentation

◆ __out

template<class T >
std::ostream& JLANG::JStreamObjectOutput< T >::__out
privateinherited

Definition at line 81 of file JStreamObjectOutput.hh.

◆ __sep

template<class T >
std::string JLANG::JStreamObjectOutput< T >::__sep
privateinherited

Definition at line 82 of file JStreamObjectOutput.hh.


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