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

History Class Reference

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

Collaboration diagram for History:

[legend]
List of all members.

Public Methods

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

Static Public Methods

History &? instance ()

Private Methods

? History ()

Private Attributes

cmt_string? m_installed

Detailed Description

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

Definition at line 74 of file cmt_cvs.cxx.


Constructor & Destructor Documentation

History::History (? ? )? [private]
?

Definition at line 2007 of file cmt_cvs.cxx.

02008 {
02009 }

Member Function Documentation

void History::clear (? ? )?
?

Definition at line 1985 of file cmt_cvs.cxx.

References m_installed.

Referenced by CvsImplementation::do_checkout().

01986 {
01987   m_installed = "";
01988 }

void History::install (? const cmt_string &? ? line )?
?

Definition at line 1990 of file cmt_cvs.cxx.

References m_installed.

Referenced by RecursivePass2::filter().

01991 {
01992   m_installed += "|";
01993   m_installed += line;
01994   m_installed += "|";
01995 }

History & History::instance (? ? )? [static]
?

Definition at line 1979 of file cmt_cvs.cxx.

Referenced by CvsImplementation::do_checkout(), RecursivePass2::filter(), and RecursivePass1::filter().

01980 {
01981   static History h;
01982   return (h);
01983 }

bool History::is_installed (? const cmt_string &? ? line )?
?

Definition at line 1997 of file cmt_cvs.cxx.

References cmt_string::find(), m_installed, and cmt_string::npos.

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

01998 {
01999   if (m_installed.find (line) != cmt_string::npos)
02000     {
02001       return (true);
02002     }
02003   
02004   return (false);
02005 }

Member Data Documentation

cmt_string History::m_installed [private]
?

Definition at line 85 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 Wed Sep 1 11:00:22 2004 for CMT by 1.2.18