Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

ProjectReader Class Reference

Inheritance diagram for ProjectReader:

Inheritance graph
[legend]
Collaboration diagram for ProjectReader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ProjectReader ()
const cmt_stringget_project_name () const
void filter (const cmt_string &line)

Private Attributes

cmt_string m_project

Constructor & Destructor Documentation

ProjectReader::ProjectReader  )  [inline]
 

Definition at line 24 of file cmt_project.cxx.

00025   {
00026   }


Member Function Documentation

void ProjectReader::filter const cmt_string line  )  [inline, virtual]
 

Reimplemented from Awk.

Definition at line 33 of file cmt_project.cxx.

References CmtSystem::cmt_string_vector, m_project, and CmtSystem::split().

00034   {
00035     CmtSystem::cmt_string_vector words;
00036     CmtSystem::split (line, " \t", words);
00037     if (words[0] == "project")
00038       {
00039         m_project = words[1];
00040       }
00041   }

const cmt_string& ProjectReader::get_project_name  )  const [inline]
 

Definition at line 28 of file cmt_project.cxx.

References m_project.

Referenced by ProjectFactory::create_project().

00029   {
00030     return (m_project);
00031   }


Member Data Documentation

cmt_string ProjectReader::m_project [private]
 

Definition at line 44 of file cmt_project.cxx.

Referenced by filter(), and get_project_name().


The documentation for this class was generated from the following file:
Generated on Mon May 2 10:25:57 2005 for CMT by doxygen 1.3.5