#include
Inheritance diagram for Packager:
Public Methods |
|
void? | begin () |
void? | filter (const cmt_string &line) |
cmt_string &? | package_name () |
Private Attributes |
|
cmt_string? | m_package_name |
|
? |
Reimplemented from Awk. Definition at line 835 of file cmt_generator.cxx. References m_package_name. 00836 { 00837 m_package_name = ""; 00838 } |
|
? |
Reimplemented from Awk. Definition at line 840 of file cmt_generator.cxx. References cmt_string::erase(), CmtSystem::file_separator(), cmt_string::find(), m_package_name, cmt_string::npos, cmt_string::replace_all(), cmt_vector< cmt_string >::size(), and CmtSystem::split(). 00841 { 00842 CmtSystem::cmt_string_vector words; 00843 00844 CmtSystem::split (line, " ", words); 00845 if (words.size () > 1) 00846 { 00847 cmt_string& w = words[0]; 00848 00849 if (w == "package") 00850 { 00851 m_package_name = words[1]; 00852 00853 int pos = m_package_name.find (";"); 00854 if (pos != cmt_string::npos) m_package_name.erase (pos); 00855 m_package_name.replace_all (".", CmtSystem::file_separator ()); 00856 } 00857 } 00858 } |
|
? |
Definition at line 860 of file cmt_generator.cxx. Referenced by LibraryGenerator::analyze_file(). 00861 {
00862 return (m_package_name);
00863 }
|
|
? |
Definition at line 23 of file cmt_generator.h. |