basso::Input Class Reference

Virtual base class for reading input. More...

#include <Input.h>

Inheritance diagram for basso::Input:

basso::FEInput basso::TextInput basso::GmshInput basso::GmshVer1Input basso::NastranInput List of all members.

Public Member Functions

 Input ()
 Input (const String &file)
 ~Input ()
void SetFileName (const String &file)

Protected Member Functions

int OpenFile (ifstream &inFile) const
void CloseFile (ifstream &inFile) const
int GotoSection (ifstream &inFile, const char *section) const
int GotoNextSection (ifstream &inFile, const char *section) const

Protected Attributes

String fFileName

Detailed Description

Virtual base class for reading input.

Definition at line 151 of file Input.h.


Constructor & Destructor Documentation

basso::Input::Input (  )  [inline]

constructor

Definition at line 156 of file Input.h.


Member Function Documentation

int basso::Input::OpenFile ( ifstream &  inFile  )  const [protected]

opens the file and inFile is a istream to that file

Definition at line 186 of file Input.h.

References fFileName.

Referenced by basso::NastranInput::AddElements(), basso::GmshVer1Input::AddElements(), basso::GmshInput::AddElements(), basso::NastranInput::AddNodeSet(), basso::GmshVer1Input::AddNodeSet(), basso::GmshInput::AddNodeSet(), basso::NastranInput::NumNodes(), basso::TextInput::ProcessFile(), basso::NastranInput::ReadNodes(), basso::GmshVer1Input::ReadNodes(), and basso::GmshInput::ReadNodes().

void basso::Input::CloseFile ( ifstream &  inFile  )  const [inline, protected]

closes the file that inFile is pointing to

Definition at line 169 of file Input.h.

Referenced by basso::NastranInput::AddElements(), basso::GmshVer1Input::AddElements(), basso::GmshInput::AddElements(), basso::NastranInput::AddNodeSet(), basso::GmshVer1Input::AddNodeSet(), basso::GmshInput::AddNodeSet(), basso::NastranInput::NumNodes(), basso::TextInput::ProcessFile(), basso::NastranInput::ReadNodes(), basso::GmshVer1Input::ReadNodes(), and basso::GmshInput::ReadNodes().

int basso::Input::GotoSection ( ifstream &  inFile,
const char *  section 
) const [protected]

goes to a particualr section in the file given by the keyword section. If there are multiple instances then it goes to the first

Definition at line 196 of file Input.h.

References GotoNextSection().

Referenced by basso::GmshVer1Input::AddElements(), basso::GmshInput::AddElements(), basso::GmshVer1Input::AddNodeSet(), basso::GmshInput::AddNodeSet(), basso::GmshVer1Input::ReadNodes(), and basso::GmshInput::ReadNodes().

int basso::Input::GotoNextSection ( ifstream &  inFile,
const char *  section 
) const [protected]

goes to the next particular section in the file given by the keyword section.

Definition at line 203 of file Input.h.

Referenced by basso::NastranInput::AddElements(), GotoSection(), basso::NastranInput::NumNodes(), and basso::NastranInput::ReadNodes().


The documentation for this class was generated from the following file:
Generated on Sat Jan 19 09:03:59 2008 for Basso by  doxygen 1.5.2