ArchiveMetaData Class Reference

#include <metadata.h>

List of all members.


Detailed Description

Archive meta data.

Definition at line 288 of file metadata.h.


Public Member Functions

 ArchiveMetaData ()
 Default constructor.
 ArchiveMetaData (std::istream &i)
 Construct and load from stream.
Setters
void setFormat (uint32_t format)
void setFileCount (uint32_t files)
void setUnComprSize (uint64_t size)
void setComprRatio (float ratio)
void setPassword (bool password)
void setComment (const char *comment)
Getters
uint32_t getFormat () const
uint32_t getFileCount () const
uint64_t getUnComprSize () const
float getComprRatio () const
std::string getComment () const
bool getPassword () const

Private Member Functions

 ~ArchiveMetaData ()
 ArchiveMetaData (const ArchiveMetaData &)
 Forbidden.
ArchiveMetaDataoperator= (const ArchiveMetaData &)
 Forbidden.

Private Attributes

uint32_t m_format
 Compression format.
uint32_t m_files
 Number of files stored.
uint64_t m_uncomprsize
 Uncompressed size.
float m_ratio
 Compression ratio.
char * m_comment
 Comment.
bool m_password
 If password is set.

Friends

class MetaData
std::ostream & operator<< (std::ostream &o, const ArchiveMetaData &amd)
 Output operator for streams.
void test_archivedata ()
 In testsuite.

Constructor & Destructor Documentation

ArchiveMetaData::ArchiveMetaData  ) 
 

Default constructor.

Definition at line 446 of file metadata.cpp.

ArchiveMetaData::ArchiveMetaData std::istream &  i  ) 
 

Construct and load from stream.

Definition at line 452 of file metadata.cpp.

References logError(), logTrace(), logWarning(), m_comment, m_files, m_format, m_password, m_ratio, m_uncomprsize, CGComm::OP_ARMD_COMMENT, CGComm::OP_ARMD_FILES, CGComm::OP_ARMD_FORMAT, CGComm::OP_ARMD_PASSWORD, CGComm::OP_ARMD_RATIO, CGComm::OP_ARMD_UNCOMPR, setComment(), and TRACE_MD.

Here is the call graph for this function:

ArchiveMetaData::~ArchiveMetaData  )  [inline, private]
 

Definition at line 320 of file metadata.h.

ArchiveMetaData::ArchiveMetaData const ArchiveMetaData  )  [private]
 

Forbidden.


Member Function Documentation

std::string ArchiveMetaData::getComment  )  const [inline]
 

Definition at line 315 of file metadata.h.

float ArchiveMetaData::getComprRatio  )  const [inline]
 

Definition at line 314 of file metadata.h.

uint32_t ArchiveMetaData::getFileCount  )  const [inline]
 

Definition at line 312 of file metadata.h.

uint32_t ArchiveMetaData::getFormat  )  const [inline]
 

Definition at line 311 of file metadata.h.

bool ArchiveMetaData::getPassword  )  const [inline]
 

Definition at line 316 of file metadata.h.

uint64_t ArchiveMetaData::getUnComprSize  )  const [inline]
 

Definition at line 313 of file metadata.h.

ArchiveMetaData& ArchiveMetaData::operator= const ArchiveMetaData  )  [private]
 

Forbidden.

void ArchiveMetaData::setComment const char *  comment  )  [inline]
 

Definition at line 302 of file metadata.h.

References Utils::copyString().

Referenced by ArchiveMetaData().

Here is the call graph for this function:

void ArchiveMetaData::setComprRatio float  ratio  )  [inline]
 

Definition at line 300 of file metadata.h.

void ArchiveMetaData::setFileCount uint32_t  files  )  [inline]
 

Definition at line 298 of file metadata.h.

void ArchiveMetaData::setFormat uint32_t  format  )  [inline]
 

Definition at line 297 of file metadata.h.

void ArchiveMetaData::setPassword bool  password  )  [inline]
 

Definition at line 301 of file metadata.h.

void ArchiveMetaData::setUnComprSize uint64_t  size  )  [inline]
 

Definition at line 299 of file metadata.h.


Friends And Related Function Documentation

friend class MetaData [friend]
 

Definition at line 319 of file metadata.h.

std::ostream& operator<< std::ostream &  o,
const ArchiveMetaData amd
[friend]
 

Output operator for streams.

Definition at line 535 of file metadata.cpp.

void test_archivedata  )  [friend]
 

In testsuite.


Member Data Documentation

char* ArchiveMetaData::m_comment [private]
 

Comment.

Definition at line 330 of file metadata.h.

Referenced by ArchiveMetaData().

uint32_t ArchiveMetaData::m_files [private]
 

Number of files stored.

Definition at line 327 of file metadata.h.

Referenced by ArchiveMetaData().

uint32_t ArchiveMetaData::m_format [private]
 

Compression format.

Definition at line 326 of file metadata.h.

Referenced by ArchiveMetaData().

bool ArchiveMetaData::m_password [private]
 

If password is set.

Definition at line 331 of file metadata.h.

Referenced by ArchiveMetaData().

float ArchiveMetaData::m_ratio [private]
 

Compression ratio.

Definition at line 329 of file metadata.h.

Referenced by ArchiveMetaData().

uint64_t ArchiveMetaData::m_uncomprsize [private]
 

Uncompressed size.

Definition at line 328 of file metadata.h.

Referenced by ArchiveMetaData().


The documentation for this class was generated from the following files: