Public Member Functions | |
CmtPathPatternProjectAction (const CmtPathPattern &pattern, Use &use) | |
bool | run (const Project &project) |
Private Attributes | |
const CmtPathPattern & | m_pattern |
Use & | m_current |
cmt_string | m_buffer |
|
Definition at line 186 of file cmt_cmtpath_pattern.cxx. References m_current, and m_pattern.
|
|
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 } |
|
Definition at line 217 of file cmt_cmtpath_pattern.cxx. Referenced by run(). |
|
Definition at line 216 of file cmt_cmtpath_pattern.cxx. Referenced by CmtPathPatternProjectAction(), and run(). |
|
Definition at line 215 of file cmt_cmtpath_pattern.cxx. Referenced by CmtPathPatternProjectAction(), and run(). |