Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00020
00021 #ifndef __VR3AAMPARSER_H__
00022 #define __VR3AAMPARSER_H__
00023
00024
00025 #include <fstream>
00026
00028
00038 namespace VR3AAMParser {
00039
00041 bool EnterBlock(std::ifstream& is);
00042
00044 bool ExitBlock(std::ifstream& is);
00045
00047
00054 bool SkipBlock(std::ifstream& is, int level);
00055
00057 bool GoToSection(std::ifstream& is, const char* sec_name);
00058
00061 bool GetGeoSection(std::ifstream& is, bool& smgEnabled);
00062
00064 bool GetIntPar(std::ifstream& is, const char* par_name, int& int_param);
00065
00067 bool GetFloatPar(std::ifstream& is, const char* par_name, float& float_param);
00068
00070 bool GetStringPar(std::ifstream& is, const char* par_name, std::string& string_param);
00071
00073 bool GetIDNamePar(std::ifstream& is, const char* par_name,
00074 int& ID, std::string& str);
00075
00077 bool GetFloatVec3(std::ifstream& is, float fVector[3]);
00078
00080
00081 bool GetFloatVec3Par( std::ifstream& is,
00082 const char* par_name, float fVector[3] );
00083
00085 bool GetFloatVec2(std::ifstream& is, float fVector[2]);
00086
00088 bool GetInt2Par( std::ifstream& is, const char* par_name,
00089 int& val1, int& val2 );
00090
00092 bool GetIntVec3( std::ifstream& is, int iVector[3] );
00093
00095 bool GetIntVec3Par( std::ifstream& is, const char* par_name,
00096 int iVector[3] );
00097
00099 bool GetIntVec31Par( std::ifstream& is, const char* par_name,
00100 int iVector[3], int& val );
00101
00103 bool SkipPar( std::ifstream& is, const char* par_name );
00104
00106 bool SeekPar( std::ifstream& is, const char* par_name );
00107
00108 }
00109
00110 #endif