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

CmtPathPatternProjectAction Class Reference

Inheritance diagram for CmtPathPatternProjectAction:

Inheritance graph
[legend]
Collaboration diagram for CmtPathPatternProjectAction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CmtPathPatternProjectAction (const CmtPathPattern &pattern, Use &use)
bool run (const Project &project)

Private Attributes

const CmtPathPatternm_pattern
Usem_current
cmt_string m_buffer

Constructor & Destructor Documentation

CmtPathPatternProjectAction::CmtPathPatternProjectAction const CmtPathPattern pattern,
Use use
[inline]
 

Definition at line 186 of file cmt_cmtpath_pattern.cxx.

References m_current, and m_pattern.

00186                                                                         : 
00187     m_pattern (pattern), 
00188     m_current (use)
00189   {
00190   }


Member Function Documentation

bool CmtPathPatternProjectAction::run const Project project  )  [inline, virtual]
 

Implements IProjectAction.

Definition at line 192 of file cmt_cmtpath_pattern.cxx.

References CmtPathPattern::expand(), Project::get_cmtpath(), Project::get_cmtpath_source(), Cmt::get_debug(), Project::get_name(), m_buffer, m_current, m_pattern, and SyntaxParser::parse_requirements_text().

00193   {
00194     const cmt_string& pname = project.get_name ();
00195     const cmt_string& p = project.get_cmtpath ();
00196     const cmt_string& s = project.get_cmtpath_source ();
00197 
00198     if (s == "default path") return (true);
00199 
00200     m_pattern.expand (m_buffer, p, pname);
00201 
00202     if (Cmt::get_debug ())
00203       {
00204         cout << "CmtPathPattern::apply> text=[" << m_buffer << "]" << endl;
00205       }
00206 
00207     SyntaxParser::parse_requirements_text (m_buffer, "", &m_current);
00208     m_buffer = "";
00209 
00210     return (true);
00211   }


Member Data Documentation

cmt_string CmtPathPatternProjectAction::m_buffer [private]
 

Definition at line 217 of file cmt_cmtpath_pattern.cxx.

Referenced by run().

Use& CmtPathPatternProjectAction::m_current [private]
 

Definition at line 216 of file cmt_cmtpath_pattern.cxx.

Referenced by CmtPathPatternProjectAction(), and run().

const CmtPathPattern& CmtPathPatternProjectAction::m_pattern [private]
 

Definition at line 215 of file cmt_cmtpath_pattern.cxx.

Referenced by CmtPathPatternProjectAction(), and run().


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