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

PackageSelector Class Reference

This FileScanner actor accumulates all found packages into a cmt_string_vector. More...

Inheritance diagram for PackageSelector

Inheritance graph
[legend]
Collaboration diagram for PackageSelector:

Collaboration graph
[legend]
List of all members.

Public Methods

 PackageSelector (CmtSystem::cmt_string_vector& uses)
void run (const cmt_string& package, const cmt_string& version, const cmt_string& path)

Private Attributes

CmtSystem::cmt_string_vectorm_uses

Detailed Description

This FileScanner actor accumulates all found packages into a cmt_string_vector.

Definition at line 124 of file cmt_parser.cxx.


Constructor & Destructor Documentation

PackageSelector::PackageSelector ( CmtSystem::cmt_string_vector & uses )
 

Definition at line 375 of file cmt_parser.cxx.

00375                                                                   : m_uses(uses)
00376 {
00377 }


Member Function Documentation

void PackageSelector::run ( const cmt_string & package,
const cmt_string & version,
const cmt_string & path ) [virtual]
 

Reimplemented from FileScanner::actor.

Definition at line 380 of file cmt_parser.cxx.

00383 {
00384   cmt_string temp;
00385 
00386   temp = path;
00387   //temp += "/";
00388   //temp += package;
00389   temp += "/";
00390   temp += version;
00391   temp += "/cmt/requirements";
00392 
00393   if (!CmtSystem::test_file (temp))
00394     {
00395       temp.replace ("/cmt/", "/mgr/");
00396       if (!CmtSystem::test_file (temp))
00397         {
00398           return;
00399         }
00400     }
00401         
00402   temp.replace ("/requirements", "");
00403   cmt_string& use = m_uses.add ();
00404   use = temp;
00405 }


Member Data Documentation

CmtSystem::cmt_string_vector & PackageSelector::m_uses [private]
 

Definition at line 132 of file cmt_parser.cxx.


The documentation for this class was generated from the following file:
Generated at Thu May 16 16:27:55 2002 for CMT by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000