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

ChecksumData Class Reference

Data on a checksum. More...

#include <sumfile.hpp>

List of all members.

Public Types

enum  State { NotVerified = 0, Verified, Invalid, NotFound }
 States available for a checksum. More...


Public Member Functions

 ChecksumData (const wxString &fn, const wxString &strSum, const State st=NotVerified)
 Constructs a new instance from a file name and a checksum value.

 ChecksumData (const wxFileName &fn, const wxString &strSum, const State st=NotVerified)
 Constructs a new instance from a file name and a checksum value.

 ChecksumData (const ChecksumData &source)
 Copy constructor.

 ChecksumData ()
 Default constructor.

wxString getChecksum () const
 Gets the checksum.

wxFileName getFileName () const
 Gets the file name.

State getState () const
 Gets the state of the checksum.

ChecksumDataoperator= (const ChecksumData &source)
 Assignment operator.

void setChecksum (const wxString &strSum)
 Sets the checksum.

void setFileName (const wxString &fn)
 Sets the file name.

void setFileName (const wxFileName &fn)
 Sets the file name.

void setState (const State newState)
 Sets the state of the checksum.


Protected Member Functions

void clone (const ChecksumData &source)
 Clones the source instance in this instance.


Protected Attributes

wxFileName fileName
 Name of the file.

State state
 State of the checksum.

wxString sum
 String that contains the sum value.


Detailed Description

Data on a checksum.

Definition at line 55 of file sumfile.hpp.


Member Enumeration Documentation

enum ChecksumData::State
 

States available for a checksum.

Definition at line 59 of file sumfile.hpp.

Referenced by getState().


Constructor & Destructor Documentation

ChecksumData::ChecksumData  ) 
 

Default constructor.

Definition at line 64 of file sumfile.cpp.

References setState().

ChecksumData::ChecksumData const ChecksumData source  ) 
 

Copy constructor.

Parameters:
source Source instance.

Definition at line 93 of file sumfile.cpp.

References clone().

ChecksumData::ChecksumData const wxFileName &  fn,
const wxString &  strSum,
const State  st = NotVerified
 

Constructs a new instance from a file name and a checksum value.

Parameters:
fn The file name.
strSum The checksum value in a string.
st The state of the checksum.

Definition at line 121 of file sumfile.cpp.

References setChecksum(), setFileName(), and setState().

ChecksumData::ChecksumData const wxString &  fn,
const wxString &  strSum,
const State  st = NotVerified
 

Constructs a new instance from a file name and a checksum value.

Parameters:
fn The string that contains the file name.
strSum The checksum value in a string.
st The state of the checksum.

Definition at line 138 of file sumfile.cpp.

References setChecksum(), setFileName(), and setState().


Member Function Documentation

void ChecksumData::clone const ChecksumData source  )  [protected]
 

Clones the source instance in this instance.

Parameters:
source Source instance.

Definition at line 76 of file sumfile.cpp.

References clone(), fileName, state, and sum.

Referenced by ChecksumData(), clone(), and operator=().

wxString ChecksumData::getChecksum  )  const
 

Gets the checksum.

Returns:
A string that contains the checksum.

Definition at line 189 of file sumfile.cpp.

References sum.

Referenced by ChecksumsListView::check(), ChecksumsListView::recompute(), ChecksumsListView::setChecksum(), SumListCompareFnct(), SFVFile::write(), and MD5File::write().

wxFileName ChecksumData::getFileName  )  const
 

Gets the file name.

Returns:
The file name.

Definition at line 153 of file sumfile.cpp.

References fileName.

Referenced by ChecksumsListView::check(), ChecksumsListView::recompute(), ChecksumsListView::setChecksum(), SumListCompareFnct(), SFVFile::write(), and MD5File::write().

ChecksumData::State ChecksumData::getState  )  const
 

Gets the state of the checksum.

Returns:
The state of the checksum.

Definition at line 213 of file sumfile.cpp.

References state, and State.

Referenced by ChecksumsListView::addChecksum(), ChecksumsListView::getStates(), and SumListCompareFnct().

ChecksumData & ChecksumData::operator= const ChecksumData source  ) 
 

Assignment operator.

Parameters:
source Source instance.
Returns:
A reference on the instance.

Definition at line 106 of file sumfile.cpp.

References clone(), and operator=().

Referenced by operator=().

void ChecksumData::setChecksum const wxString &  strSum  ) 
 

Sets the checksum.

Parameters:
strSum The string that contains the checksum.

Definition at line 201 of file sumfile.cpp.

References setChecksum(), and sum.

Referenced by ChecksumData(), ChecksumsListView::recompute(), and setChecksum().

void ChecksumData::setFileName const wxString &  fn  ) 
 

Sets the file name.

Parameters:
fn The string that contains the new file name.

Definition at line 177 of file sumfile.cpp.

References fileName, and setFileName().

void ChecksumData::setFileName const wxFileName &  fn  ) 
 

Sets the file name.

Parameters:
fn The new file name.

Definition at line 165 of file sumfile.cpp.

References fileName, and setFileName().

Referenced by ChecksumData(), setFileName(), SFVFile::write(), and MD5File::write().

void ChecksumData::setState const State  newState  ) 
 

Sets the state of the checksum.

Parameters:
newState The new state of the checksum.

Definition at line 225 of file sumfile.cpp.

References setState(), and state.

Referenced by ChecksumData(), and setState().


Member Data Documentation

wxFileName ChecksumData::fileName [protected]
 

Name of the file.

Definition at line 71 of file sumfile.hpp.

Referenced by clone(), getFileName(), and setFileName().

State ChecksumData::state [protected]
 

State of the checksum.

Definition at line 73 of file sumfile.hpp.

Referenced by clone(), getState(), and setState().

wxString ChecksumData::sum [protected]
 

String that contains the sum value.

Definition at line 72 of file sumfile.hpp.

Referenced by clone(), getChecksum(), and setChecksum().


The documentation for this class was generated from the following files:
Generated on Sun May 30 13:38:02 2004 for wxChecksums by doxygen 1.3.7