LifeV
OutPutFormat Class Reference

OutPutFormat - Write to output. More...

#include <ZeroDimensionalCircuitData.hpp>

+ Collaboration diagram for OutPutFormat:

Public Types

enum  EndLine { newLine, space, nothing }
 

Public Member Functions

 OutPutFormat (std::string width, std::string precision, std::string whiteSpace, Int bufferSize)
 Constructor. More...
 
virtual ~OutPutFormat ()
 Destructor. More...
 
void writeDataFormat (const Real &number, std::ofstream &stream, const EndLine &flag)
 
void writeDataFormat (const Int &number, std::ofstream &stream, const EndLine &flag)
 
void writeDataFormat (const std::string &text, std::ofstream &stream, const EndLine &flag)
 
void writeNewLine (std::ofstream &stream)
 

Private Attributes

std::string M_width
 
UInt M_integerWidth
 
std::string M_precision
 
std::string M_whiteSpace
 
std::string M_formatDouble
 
std::string M_formatInteger
 
std::string M_formatString
 
char * M_buffer
 

Detailed Description

OutPutFormat - Write to output.

Authors
Mahmoud Jafargholi

Definition at line 1421 of file ZeroDimensionalCircuitData.hpp.

Member Enumeration Documentation

◆ EndLine

enum EndLine
Enumerator
newLine 
space 
nothing 

Definition at line 1431 of file ZeroDimensionalCircuitData.hpp.

Constructor & Destructor Documentation

◆ OutPutFormat()

OutPutFormat ( std::string  width,
std::string  precision,
std::string  whiteSpace,
Int  bufferSize 
)
explicit

Constructor.

Definition at line 1016 of file ZeroDimensionalCircuitData.cpp.

◆ ~OutPutFormat()

~OutPutFormat ( )
virtual

Destructor.

Definition at line 1119 of file ZeroDimensionalCircuitData.cpp.

Member Function Documentation

◆ writeDataFormat() [1/3]

void writeDataFormat ( const Real number,
std::ofstream &  stream,
const EndLine flag 
)

Definition at line 1029 of file ZeroDimensionalCircuitData.cpp.

◆ writeDataFormat() [2/3]

void writeDataFormat ( const Int number,
std::ofstream &  stream,
const EndLine flag 
)

Definition at line 1052 of file ZeroDimensionalCircuitData.cpp.

◆ writeDataFormat() [3/3]

void writeDataFormat ( const std::string &  text,
std::ofstream &  stream,
const EndLine flag 
)

Definition at line 1091 of file ZeroDimensionalCircuitData.cpp.

◆ writeNewLine()

void writeNewLine ( std::ofstream &  stream)

Definition at line 1115 of file ZeroDimensionalCircuitData.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ M_width

std::string M_width
private

Definition at line 1440 of file ZeroDimensionalCircuitData.hpp.

◆ M_integerWidth

UInt M_integerWidth
private

Definition at line 1441 of file ZeroDimensionalCircuitData.hpp.

◆ M_precision

std::string M_precision
private

Definition at line 1442 of file ZeroDimensionalCircuitData.hpp.

◆ M_whiteSpace

std::string M_whiteSpace
private

Definition at line 1443 of file ZeroDimensionalCircuitData.hpp.

◆ M_formatDouble

std::string M_formatDouble
private

Definition at line 1444 of file ZeroDimensionalCircuitData.hpp.

◆ M_formatInteger

std::string M_formatInteger
private

Definition at line 1445 of file ZeroDimensionalCircuitData.hpp.

◆ M_formatString

std::string M_formatString
private

Definition at line 1446 of file ZeroDimensionalCircuitData.hpp.

◆ M_buffer

char* M_buffer
private

Definition at line 1447 of file ZeroDimensionalCircuitData.hpp.


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