#include <cmt_branch.h>
Collaboration diagram for Branch:

Public Types | |
| typedef cmt_vector<Branch> | BranchVector |
Public Methods | |
| Branch () | |
| ~Branch () | |
| const cmt_string& | name () const |
| void | print (PrintMode mode) const |
Static Public Methods | |
| void | action (const CmtSystem::cmt_string_vector& words) |
| Branch* | find (const cmt_string& name) |
| void | add (const cmt_string& name) |
| void | print_all (PrintMode mode) |
| void | clear_all () |
| BranchVector& | branches () |
Private Attributes | |
| cmt_string | m_name |
|
|
Definition at line 10 of file cmt_branch.h. |
|
|
Definition at line 116 of file cmt_branch.cxx. 00118 {
00119 }
|
|
|
Definition at line 122 of file cmt_branch.cxx. 00124 {
00125 }
|
|
|
Definition at line 16 of file cmt_branch.cxx. Referenced by Cmt::select(). 00018 {
00019 for (int i = 1; i < words.size (); i++)
00020 {
00021 const cmt_string& name = words[i];
00022 if (name == "") return;
00023
00024 add (name);
00025 }
00026 }
|
|
|
Definition at line 54 of file cmt_branch.cxx. |
|
|
Definition at line 106 of file cmt_branch.cxx. Referenced by Cmt::do_config(). 00108 {
00109 static Database& db = Database::instance ();
00110 static BranchVector& Branches = db.branches ();
00111
00112 return (Branches);
00113 }
|
|
|
Definition at line 88 of file cmt_branch.cxx. Referenced by Database::clear(). 00090 {
00091 static BranchVector& Branches = branches ();
00092
00093 int number;
00094
00095 for (number = 0; number < Branches.size (); number++)
00096 {
00097 Branch& b = Branches[number];
00098
00099 b.m_name = "";
00100 }
00101
00102 Branches.clear ();
00103 }
|
|
|
Definition at line 29 of file cmt_branch.cxx. 00031 {
00032 static BranchVector& Branches = branches ();
00033
00034 int branch_index;
00035
00036 if (Branches.size () == 0) return (0);
00037
00038 for (branch_index = 0;
00039 branch_index < Branches.size ();
00040 branch_index++)
00041 {
00042 Branch& branch = Branches[branch_index];
00043
00044 if (branch.name () == name)
00045 {
00046 return (&branch);
00047 }
00048 }
00049
00050 return (0);
00051 }
|
|
|
Definition at line 128 of file cmt_branch.cxx. Referenced by Cmt::do_config(), and find(). 00130 {
00131 return (m_name);
00132 }
|
|
|
Definition at line 135 of file cmt_branch.cxx. 00137 {
00138 cout << m_name;
00139 }
|
|
|
Definition at line 72 of file cmt_branch.cxx. Referenced by Cmt::do_show_branches(). 00074 {
00075 static BranchVector& Branches = branches ();
00076
00077 int number;
00078
00079 for (number = 0; number < Branches.size (); number++)
00080 {
00081 if (number > 0) cout << " ";
00082 Branches[number].print (mode);
00083 }
00084 if (number > 0) cout << endl;
00085 }
|
|
|
Definition at line 26 of file cmt_branch.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000