BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
belfem::InputFile Class Reference

Parser for the input.conf configuration format. More...

#include <cl_InputFile.hpp>

Inheritance diagram for belfem::InputFile:
[legend]
Collaboration diagram for belfem::InputFile:
[legend]

Public Member Functions

 InputFile (const string &aPath)
 ~InputFile () override
void print ()
const input::Sectionsection (const string &aSection) const
 return a top-level section by type string ( a labelled section is keyed as "type:label" )
const input::Sectionsection (const index_t aIndex) const
 access a section by index
bool section_exists (const string &aSection) const
 tell if a section exists
index_t num_sections () const
 number of sections
Public Member Functions inherited from belfem::Ascii
 Ascii (const string &aPath, const enum FileMode &aMode)
virtual ~Ascii ()
bool save ()
void print (const std::string &aLine)
index_t length () const
 return the number of lines
stringline (const index_t aLineNumber)
const stringline (const index_t aLineNumber) const

Additional Inherited Members

Protected Attributes inherited from belfem::Ascii
string mPath
const FileMode mMode
Cell< stringmBuffer
bool mChangedSinceLastSave = false

Detailed Description

Parser for the input.conf configuration format.

See also
BELFEM I/O Usage Guide

Constructor & Destructor Documentation

◆ InputFile()

belfem::InputFile::InputFile ( const string & aPath)

◆ ~InputFile()

belfem::InputFile::~InputFile ( )
override

Member Function Documentation

◆ num_sections()

index_t belfem::InputFile::num_sections ( ) const

number of sections

◆ print()

void belfem::InputFile::print ( )

◆ section() [1/2]

const input::Section * belfem::InputFile::section ( const index_t aIndex) const

access a section by index

◆ section() [2/2]

const input::Section * belfem::InputFile::section ( const string & aSection) const

return a top-level section by type string ( a labelled section is keyed as "type:label" )

◆ section_exists()

bool belfem::InputFile::section_exists ( const string & aSection) const

tell if a section exists


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