PSCF v1.5.0
Util::Blank Class Reference

An empty line within a parameter file. More...

#include <Blank.h>

Inheritance diagram for Util::Blank:
Util::ParamComponent Util::Serializable Util::MpiFileIo

Public Member Functions

 Blank ()
 Constructor.
virtual ~Blank ()
 Destructor.
virtual void readParam (std::istream &in)
 Read a blank line.
virtual void writeParam (std::ostream &out) const
 Write a blank line.
Public Member Functions inherited from Util::ParamComponent
virtual ~ParamComponent ()
 Destructor.
virtual void load (Serializable::IArchive &ar)
 Load internal state from an archive.
virtual void save (Serializable::OArchive &ar)
 Save internal state to an archive.
virtual void resetParam ()
 Nontrivial implementation provided by ParamComposite subclass.
void setIndent (const ParamComponent &parent, bool next=true)
 Set indent level.
std::string indent () const
 Return indent string for this object (string of spaces).
template<class Archive>
void serialize (Archive &ar, const unsigned int version)
 Serialize this ParamComponent as a string.
Public Member Functions inherited from Util::Serializable
virtual ~Serializable ()
 Destructor.
Public Member Functions inherited from Util::MpiFileIo
 MpiFileIo ()
 Constructor.
 MpiFileIo (const MpiFileIo &other)
 Copy constructor.
bool isIoProcessor () const
 Can this processor do file I/O ?

Additional Inherited Members

Public Types inherited from Util::Serializable
typedef BinaryFileOArchive OArchive
 Type of output archive used by save method.
typedef BinaryFileIArchive IArchive
 Type of input archive used by load method.
Static Public Member Functions inherited from Util::ParamComponent
static void initStatic ()
 Initialize static echo member to false.
static void setEcho (bool echo=true)
 Enable or disable echoing for all subclasses of ParamComponent.
static bool echo ()
 Get echo parameter.
Protected Member Functions inherited from Util::ParamComponent
 ParamComponent ()
 Constructor.
 ParamComponent (const ParamComponent &other)
 Copy constructor.

Detailed Description

An empty line within a parameter file.

A Param represents an empty line within a file format that is represented as a ParamComposite.

Definition at line 24 of file Blank.h.

Constructor & Destructor Documentation

◆ Blank()

Util::Blank::Blank ( )

Constructor.

Definition at line 17 of file Blank.cpp.

References Util::ParamComponent::ParamComponent().

Referenced by Util::ParamComposite::addBlank().

◆ ~Blank()

Util::Blank::~Blank ( )
virtual

Destructor.

Virtual Destructor.

Definition at line 22 of file Blank.cpp.

Member Function Documentation

◆ readParam()

void Util::Blank::readParam ( std::istream & in)
virtual

Read a blank line.

Skips white space of any length up to and including the end of the current line. Text that is not white space is not consumed, so that it is read as the next item of the parameter file.

Parameters
ininput stream

Implements Util::ParamComponent.

Definition at line 26 of file Blank.cpp.

References Util::ParamComponent::echo(), Util::Log::file(), Util::MpiFileIo::isIoProcessor(), and writeParam().

Referenced by Util::ParamComposite::readBlank().

◆ writeParam()

void Util::Blank::writeParam ( std::ostream & out) const
virtual

Write a blank line.

Parameters
outoutput stream

Implements Util::ParamComponent.

Definition at line 50 of file Blank.cpp.

Referenced by readParam().


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