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

# Packager Class Reference

Inheritance diagram for Packager

[legend]
Collaboration diagram for Packager:

[legend]
List of all members.

## Public Methods
void | begin ()
void | filter (const cmt_string& line)
cmt_string& | package_name ()
## Private Attributes
cmt_string | m_package_name

## Member Function Documentation

void Packager::begin ( | )`[virtual]`

| Reimplemented from Awk. Definition at line 3032 of file cmt_generator.cxx.
    03033 {
    03034   m_package_name = "";
    03035 }

void Packager::filter ( | const cmt_string & line )`[virtual]`

| Reimplemented from Awk. Definition at line 3037 of file cmt_generator.cxx.
    03038 {
    03039   CmtSystem::cmt_string_vector words;
    03040
    03041   CmtSystem::split (line, " ", words);
    03042   if (words.size () > 1)
    03043     {
    03044       cmt_string& w = words[0];
    03045
    03046       if (w == "package")
    03047         {
    03048           m_package_name = words[1];
    03049
    03050           int pos = m_package_name.find (";");
    03051           if (pos != cmt_string::npos) m_package_name.erase (pos);
    03052           m_package_name.replace_all (".", CmtSystem::file_separator ());
    03053         }
    03054     }
    03055 }

cmt_string & Packager::package_name ( | )

| Definition at line 3057 of file cmt_generator.cxx. Referenced by MakefileGenerator::analyze_file().
    03058 {
    03059   return (m_package_name);
    03060 }

## Member Data Documentation

cmt_string Packager::m_package_name`[private]`

| Definition at line 218 of file cmt_generator.cxx.

The documentation for this class was generated from the following file:

- cmt_generator.cxx