#include <Input.h>
Inheritance diagram for basso::Input:
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 |
Definition at line 151 of file Input.h.
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().