SilentEye 0.4.1
Public Types | Public Member Functions | Private Attributes

SilentEyeFramework::Data Class Reference

Data encapsulation. More...

#include <data.h>

List of all members.

Public Types

enum  DataFormat {
  BYTES = 0, UINT32 = 1, UTF8 = 2, LATIN1 = 3,
  ASCII = 4, FILE = 5, F_UNDEF = 7
}
 

Data format.

More...

Public Member Functions

 Data (const DataFormat)
 Data (const QByteArray &, const DataFormat=F_UNDEF)
 Data (const DataFormat, const QByteArray &, const QString="")
 ~Data ()
DataFormat format () const
QString name () const
QByteArray data () const
void setFormat (const DataFormat)
void setName (const QString)
void setData (const QByteArray &)
QByteArray toByteArray () const

Private Attributes

QPointer< Loggerm_logger
 Logger.
DataFormat m_format
 Current data format.
QString m_name
 Specific name (ex: filename)
QByteArray m_data
 Information data.

Detailed Description

Data encapsulation.

Definition at line 28 of file data.h.


Member Enumeration Documentation

Data format.

Enumerator:
BYTES 

raw data

UINT32 

unsigned int 32bit

UTF8 

String using UF8.

LATIN1 

String using latin

ASCII 

String using ascii table

FILE 

File

F_UNDEF 

Definition at line 32 of file data.h.


Constructor & Destructor Documentation

SilentEyeFramework::Data::Data ( const DataFormat  format)

Definition at line 62 of file data.cpp.

References m_logger, and SEFormatBMP::setObjectName().

SilentEyeFramework::Data::Data ( const QByteArray &  bytes,
const DataFormat  format = F_UNDEF 
)

Definition at line 21 of file data.cpp.

References F_UNDEF, FILE, format(), m_data, m_format, m_logger, m_name, SEFormatBMP::setObjectName(), and UINT32.

SilentEyeFramework::Data::Data ( const DataFormat  format,
const QByteArray &  data,
const QString  name = "" 
)

Definition at line 69 of file data.cpp.

References m_logger, and SEFormatBMP::setObjectName().

SilentEyeFramework::Data::~Data ( )

Definition at line 76 of file data.cpp.

References m_logger.


Member Function Documentation

QByteArray SilentEyeFramework::Data::data ( ) const

Definition at line 91 of file data.cpp.

References m_data.

Data::DataFormat SilentEyeFramework::Data::format ( ) const

Definition at line 81 of file data.cpp.

References m_format.

Referenced by SilentEyeFramework::EncodedData::checkPartialData(), and Data().

QString SilentEyeFramework::Data::name ( ) const

Definition at line 86 of file data.cpp.

References m_name.

void SilentEyeFramework::Data::setData ( const QByteArray &  )
void SilentEyeFramework::Data::setFormat ( const DataFormat  )
void SilentEyeFramework::Data::setName ( const QString  )
QByteArray SilentEyeFramework::Data::toByteArray ( ) const

Definition at line 96 of file data.cpp.

References ASCII, BYTES, F_UNDEF, FILE, LATIN1, m_data, m_format, m_name, UINT32, and UTF8.

Referenced by SilentEyeFramework::EncodedData::EncodedData().


Member Data Documentation

QByteArray SilentEyeFramework::Data::m_data [private]

Information data.

Definition at line 50 of file data.h.

Referenced by data(), Data(), and toByteArray().

Current data format.

Definition at line 46 of file data.h.

Referenced by Data(), format(), and toByteArray().

Logger.

Definition at line 43 of file data.h.

Referenced by Data(), and ~Data().

Specific name (ex: filename)

Definition at line 48 of file data.h.

Referenced by Data(), name(), and toByteArray().


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