Main Page ? Class Hierarchy ? Compound List ? File List ? Compound Members ? File Members ?

ProjectPatcher Class Reference

Inheritance diagram for ProjectPatcher:

[legend]
Collaboration diagram for ProjectPatcher:

[legend]
List of all members.

Public Methods

? ProjectPatcher (const cmt_string &p)
void? commit ()
void? filter (const cmt_string &line)

Private Attributes

cmt_string? m_output
const cmt_string &? m_project

Constructor & Destructor Documentation

ProjectPatcher::ProjectPatcher (? const cmt_string &? ? p )? [inline]
?

Definition at line 50 of file cmt_project.cxx.

References m_project.

00050                                        : m_project (p)
00051   {
00052   }

Member Function Documentation

void ProjectPatcher::commit (? ? )? [inline]
?

Definition at line 54 of file cmt_project.cxx.

References Project::get_project_file_name(), m_output, and cmt_string::write().

Referenced by Project::create().

00055   {
00056     m_output.write (Project::get_project_file_name ());
00057   }

void ProjectPatcher::filter (? const cmt_string &? ? line )? [inline, virtual]
?

Reimplemented from Awk.

Definition at line 59 of file cmt_project.cxx.

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

00060   {
00061     if (m_output != "")
00062       {
00063         m_output += "\n";
00064       }
00065     
00066     CmtSystem::cmt_string_vector words;
00067     CmtSystem::split (line, " \t", words);
00068     if (words[0] == "project")
00069       {
00070         m_output += "project ";
00071         m_output += m_project;
00072       }
00073     else
00074       {
00075         m_output += line;
00076       }
00077   }

Member Data Documentation

cmt_string ProjectPatcher::m_output [private]
?

Definition at line 80 of file cmt_project.cxx.

Referenced by commit(), and filter().

const cmt_string& ProjectPatcher::m_project [private]
?

Definition at line 81 of file cmt_project.cxx.

Referenced by filter(), and ProjectPatcher().


The documentation for this class was generated from the following file:
Generated on Wed Sep 1 11:00:51 2004 for CMT by 1.2.18