proj home

Files   Classes   Functions   Hierarchy  

compilationfiletest Class Reference

Test compilationfile class. More...

#include <compilationfiletest.h>

Collaboration diagram for compilationfiletest:

List of all members.

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.


Detailed Description

Test compilationfile class.

Definition at line 10 of file compilationfiletest.h.


Member Function Documentation

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 }


Member Data Documentation

string compilationfiletest::doc [static]

Initial value:

 
{
  "",
  "Print a compilationfile.",
  "Explore find with text string.",
  "Constructing a compilationfile."
}
Brief description of each test.

Definition at line 15 of file compilationfiletest.h.

Referenced by main().


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

Generated on Fri Mar 4 00:49:52 2011 for Chelton Evans Source by  doxygen 1.5.8