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

CmtPathPatternProjectAction Class Reference

Inheritance diagram for CmtPathPatternProjectAction:

[legend]
Collaboration diagram for CmtPathPatternProjectAction:

[legend]
List of all members.

Public Methods

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

Private Attributes

const CmtPathPattern &? m_pattern
Use &? m_current
cmt_string? m_buffer

Constructor & Destructor Documentation

CmtPathPatternProjectAction::CmtPathPatternProjectAction (? const CmtPathPattern &? ? pattern,
Use &? ? use
)? [inline]
?

Definition at line 181 of file cmt_cmtpath_pattern.cxx.

References m_current, and m_pattern.

00181                                                                         : 
00182     m_pattern (pattern), 
00183     m_current (use)
00184   {
00185   }

Member Function Documentation

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

Implements IProjectAction.

Definition at line 187 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().

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

Member Data Documentation

cmt_string CmtPathPatternProjectAction::m_buffer [private]
?

Definition at line 212 of file cmt_cmtpath_pattern.cxx.

Referenced by run().

Use& CmtPathPatternProjectAction::m_current [private]
?

Definition at line 211 of file cmt_cmtpath_pattern.cxx.

Referenced by CmtPathPatternProjectAction(), and run().

const CmtPathPattern& CmtPathPatternProjectAction::m_pattern [private]
?

Definition at line 210 of file cmt_cmtpath_pattern.cxx.

Referenced by CmtPathPatternProjectAction(), and run().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 15:26:44 2004 for CMT by 1.2.18