Files Classes Functions Hierarchy
#include <compilationfiletest.h>
Static Public Member Functions | |
| static void | test01 () |
| Print a compilationfile. | |
| static void | test02 () |
| Explore find with text string. | |
| static void | test03 () |
| Constructing a compilationfile and calling eval(). | |
Static Public Attributes | |
| static string | doc [] |
| Brief description of each test. | |
Definition at line 10 of file compilationfiletest.h.
| void compilationfiletest::test01 | ( | ) | [static] |
Print a compilationfile.
Definition at line 16 of file compilationfiletest.cpp.
References compilationfile::print().
Referenced by main().
00017 { 00018 string s1="../vrml/vrmlshapeparse.h"; 00019 00020 compilationfile c1(s1); 00021 00022 c1.print(); 00023 }
| void compilationfiletest::test02 | ( | ) | [static] |
Explore find with text string.
Definition at line 26 of file compilationfiletest.cpp.
Referenced by main().
00027 { 00028 string s1="../vrml/vrmlshapeparse.h"; 00029 string::size_type pos = s1.rfind("."); 00030 cout << s1.substr(pos) << endl; 00031 00032 string::size_type pos2 = s1.rfind("/"); 00033 string s2 = s1.substr(pos2+1); 00034 cout << s2 << endl; 00035 00036 cout << s1.substr(0,pos2+1) << endl; 00037 00038 string::size_type pos3 = s2.rfind("."); 00039 cout << s2.substr(0,pos3) << endl; 00040 }
| void compilationfiletest::test03 | ( | ) | [static] |
Constructing a compilationfile and calling eval().
Definition at line 42 of file compilationfiletest.cpp.
References compilationfile::print().
Referenced by main().
00043 { 00044 string s1="../vrml/vrmlshapeparse.h"; 00045 00046 compilationfile cf(s1); 00047 cf.print(); 00048 }
string compilationfiletest::doc [static] |
Initial value:
{
"",
"Print a compilationfile.",
"Explore find with text string.",
"Constructing a compilationfile."
}
Definition at line 15 of file compilationfiletest.h.
Referenced by main().
1.5.8