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

Line-based ASCII file interface. More...

#include <cl_Ascii.hpp>

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

Public Member Functions

 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

Protected Attributes

string mPath
const FileMode mMode
Cell< stringmBuffer
bool mChangedSinceLastSave = false

Detailed Description

Line-based ASCII file interface.

See also
BELFEM I/O Usage Guide

Constructor & Destructor Documentation

◆ Ascii()

belfem::Ascii::Ascii ( const string & aPath,
const enum FileMode & aMode )

◆ ~Ascii()

belfem::Ascii::~Ascii ( )
virtual

Member Function Documentation

◆ length()

index_t belfem::Ascii::length ( ) const

return the number of lines

◆ line() [1/2]

string & belfem::Ascii::line ( const index_t aLineNumber)

◆ line() [2/2]

const string & belfem::Ascii::line ( const index_t aLineNumber) const

◆ print()

void belfem::Ascii::print ( const std::string & aLine)

◆ save()

bool belfem::Ascii::save ( )

Member Data Documentation

◆ mBuffer

Cell< string > belfem::Ascii::mBuffer
protected

◆ mChangedSinceLastSave

bool belfem::Ascii::mChangedSinceLastSave = false
protected

◆ mMode

const FileMode belfem::Ascii::mMode
protected

◆ mPath

string belfem::Ascii::mPath
protected

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