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

PackageViewer Class Reference

This FileScanner actor creates packages in the database. More...

Inheritance diagram for PackageViewer

[legend]
Collaboration diagram for PackageViewer:

[legend]
List of all members.

Public Methods

void? run (const cmt_string& package, const cmt_string& version, const cmt_string& path)
void? set_path (const cmt_string& path)

Private Attributes

cmt_string? path_prefix

Detailed Description

This FileScanner actor creates packages in the database.

Definition at line 170 of file cmtshowclients.cxx.


Member Function Documentation

void PackageViewer::run ( const cmt_string & package,
const cmt_string & version,
const cmt_string & path?) [inline, virtual]
?

Reimplemented from FileScanner::actor.

Definition at line 173 of file cmtshowclients.cxx.

00176       {
00177         cmt_string null;
00178         cmt_string offset = path;
00179 
00180         offset.replace (path_prefix, null);
00181         offset.replace (CmtSystem::file_separator (), null);
00182         offset.replace (package, null);
00183         
00184         if (CmtSystem::file_separator () == '\\')
00185           {
00186             offset.replace_all (CmtSystem::file_separator (), '/');
00187           }
00188         
00189         int pos = offset.find_last_of ('/');
00190         if (pos == (offset.size () - 1)) offset.erase (pos);
00191         
00192           //cout << package << " " << version << " " << offset << " " << path_prefix << endl;
00193         Package::create (package, version, offset, path_prefix);
00194       }

void PackageViewer::set_path ( const cmt_string & path?) [inline]
?

Definition at line 196 of file cmtshowclients.cxx.

Referenced by main().

00197       {
00198         path_prefix = path;
00199       }

Member Data Documentation

cmt_string PackageViewer::path_prefix [private]
?

Definition at line 202 of file cmtshowclients.cxx.


The documentation for this class was generated from the following file:
Generated at Fri Apr 12 16:18:16 2002 for cmtgrapher by 1.2.3 written by , ??1997-2000