Inheritance diagram for PackageViewer
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 |
Definition at line 170 of file cmtshowclients.cxx.
|
| ? |
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 }
|
|
| ? |
Definition at line 196 of file cmtshowclients.cxx. Referenced by main(). 00197 {
00198 path_prefix = path;
00199 }
|
|
| ? |
Definition at line 202 of file cmtshowclients.cxx. |