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

Packager Class Reference

#include

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 835 of file cmt_generator.cxx.

References m_package_name.

00836 {
00837   m_package_name = "";
00838 }

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

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 }

cmt_string & Packager::package_name (? ? )?
?

Definition at line 860 of file cmt_generator.cxx.

Referenced by LibraryGenerator::analyze_file().

00861 {
00862   return (m_package_name);
00863 }

Member Data Documentation

cmt_string Packager::m_package_name [private]
?

Definition at line 23 of file cmt_generator.h.

Referenced by begin(), and filter().


The documentation for this class was generated from the following files:
Generated on Wed Sep 1 11:00:46 2004 for CMT by 1.2.18