Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

History Class Reference

History : maintains the history of checkouts during a recursive checkout, so as to avoid double checkouts. More...

Collaboration diagram for History:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void clear ()
void install (const cmt_string &line)
bool is_installed (const cmt_string &line)

Static Public Member Functions

Historyinstance ()

Private Member Functions

 History ()

Private Attributes

cmt_string m_installed

Detailed Description

History : maintains the history of checkouts during a recursive checkout, so as to avoid double checkouts.

Definition at line 76 of file cmt_cvs.cxx.


Constructor & Destructor Documentation

History::History  )  [private]
 

Definition at line 2283 of file cmt_cvs.cxx.

02284 {
02285 }


Member Function Documentation

void History::clear  ) 
 

Definition at line 2261 of file cmt_cvs.cxx.

References m_installed.

Referenced by CvsImplementation::do_checkout_phase1().

02262 {
02263   m_installed = "";
02264 }

void History::install const cmt_string line  ) 
 

Definition at line 2266 of file cmt_cvs.cxx.

References m_installed.

Referenced by RecursivePass4::filter(), and RecursivePass2::filter().

02267 {
02268   m_installed += "|";
02269   m_installed += line;
02270   m_installed += "|";
02271 }

History & History::instance  )  [static]
 

Definition at line 2255 of file cmt_cvs.cxx.

Referenced by CvsImplementation::do_checkout_phase1(), RecursivePass4::filter(), RecursivePass3::filter(), RecursivePass2::filter(), and RecursivePass1::filter().

02256 {
02257   static History h;
02258   return (h);
02259 }

bool History::is_installed const cmt_string line  ) 
 

Definition at line 2273 of file cmt_cvs.cxx.

References cmt_string::find(), and m_installed.

Referenced by RecursivePass4::filter(), RecursivePass3::filter(), RecursivePass2::filter(), and RecursivePass1::filter().

02274 {
02275   if (m_installed.find (line) != cmt_string::npos)
02276     {
02277       return (true);
02278     }
02279   
02280   return (false);
02281 }


Member Data Documentation

cmt_string History::m_installed [private]
 

Definition at line 87 of file cmt_cvs.cxx.

Referenced by clear(), install(), and is_installed().


The documentation for this class was generated from the following file:
Generated on Mon May 2 10:25:39 2005 for CMT by doxygen 1.3.5