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

VisitorForFillCMTPATH Class Reference

Inheritance diagram for VisitorForFillCMTPATH:

Inheritance graph
[legend]
Collaboration diagram for VisitorForFillCMTPATH:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VisitorForFillCMTPATH (cmt_string &buffer)
void pre (Project *p)
void in (Project *p)
void post (Project *p)

Private Attributes

cmt_stringm_buffer

Constructor & Destructor Documentation

VisitorForFillCMTPATH::VisitorForFillCMTPATH cmt_string buffer  )  [inline]
 

Definition at line 1042 of file cmt_project.cxx.

References m_buffer.

01042                                              : m_buffer (buffer)
01043   {
01044   }


Member Function Documentation

void VisitorForFillCMTPATH::in Project p  )  [inline, virtual]
 

Implements IProjectVisitor.

Definition at line 1061 of file cmt_project.cxx.

References Project::get_cmtpath_pwd(), Project::get_cmtpath_source(), m_buffer, and CmtSystem::test_directory().

01062   {
01063     const cmt_string& w = p->get_cmtpath_pwd ();
01064     const cmt_string& s = p->get_cmtpath_source ();
01065 
01066     if (s == "default path") return;
01067 
01068     if (CmtSystem::test_directory (w))
01069       {
01070         m_buffer += "path_append CMTPATH \"";
01071         m_buffer += w;
01072         m_buffer += "\" \n";
01073       }
01074   }

void VisitorForFillCMTPATH::post Project p  )  [inline, virtual]
 

Implements IProjectVisitor.

Definition at line 1076 of file cmt_project.cxx.

01077   {
01078     //cerr << "Buffer = " << m_buffer << endl;
01079   }

void VisitorForFillCMTPATH::pre Project p  )  [inline, virtual]
 

Implements IProjectVisitor.

Definition at line 1046 of file cmt_project.cxx.

References Project::get_cmtpath_pwd(), Project::get_cmtpath_source(), m_buffer, and CmtSystem::test_directory().

01047   {
01048     const cmt_string& w = p->get_cmtpath_pwd ();
01049     const cmt_string& s = p->get_cmtpath_source ();
01050 
01051     if (s == "default path") return;
01052 
01053     if (CmtSystem::test_directory (w))
01054       {
01055         m_buffer += "path_append CMTPATH \"";
01056         m_buffer += w;
01057         m_buffer += "\" \n";
01058       }
01059   }


Member Data Documentation

cmt_string& VisitorForFillCMTPATH::m_buffer [private]
 

Definition at line 1082 of file cmt_project.cxx.

Referenced by in(), pre(), and VisitorForFillCMTPATH().


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