Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CArchive Class Reference

#include <Archive.h>

Public Types

enum  Mode { load = 0 , store }
 

Public Member Functions

 CArchive (XFILE::CFile *pFile, int mode)
 
 ~CArchive ()
 
CArchiveoperator<< (float f)
 
CArchiveoperator<< (double d)
 
CArchiveoperator<< (short int s)
 
CArchiveoperator<< (unsigned short int us)
 
CArchiveoperator<< (int i)
 
CArchiveoperator<< (unsigned int ui)
 
CArchiveoperator<< (long int l)
 
CArchiveoperator<< (unsigned long int ul)
 
CArchiveoperator<< (long long int ll)
 
CArchiveoperator<< (unsigned long long int ull)
 
CArchiveoperator<< (bool b)
 
CArchiveoperator<< (char c)
 
CArchiveoperator<< (const std::string &str)
 
CArchiveoperator<< (const std::wstring &wstr)
 
CArchiveoperator<< (const KODI::TIME::SystemTime &time)
 
CArchiveoperator<< (IArchivable &obj)
 
CArchiveoperator<< (const CVariant &variant)
 
CArchiveoperator<< (const std::vector< std::string > &strArray)
 
CArchiveoperator<< (const std::vector< int > &iArray)
 
CArchiveoperator>> (float &f)
 
CArchiveoperator>> (double &d)
 
CArchiveoperator>> (short int &s)
 
CArchiveoperator>> (unsigned short int &us)
 
CArchiveoperator>> (int &i)
 
CArchiveoperator>> (unsigned int &ui)
 
CArchiveoperator>> (long int &l)
 
CArchiveoperator>> (unsigned long int &ul)
 
CArchiveoperator>> (long long int &ll)
 
CArchiveoperator>> (unsigned long long int &ull)
 
CArchiveoperator>> (bool &b)
 
CArchiveoperator>> (char &c)
 
CArchiveoperator>> (std::string &str)
 
CArchiveoperator>> (std::wstring &wstr)
 
CArchiveoperator>> (KODI::TIME::SystemTime &time)
 
CArchiveoperator>> (IArchivable &obj)
 
CArchiveoperator>> (CVariant &variant)
 
CArchiveoperator>> (std::vector< std::string > &strArray)
 
CArchiveoperator>> (std::vector< int > &iArray)
 
bool IsLoading () const
 
bool IsStoring () const
 
void Close ()
 

Protected Member Functions

CArchivestreamout (const void *dataPtr, size_t size)
 
CArchivestreamin (void *dataPtr, size_t size)
 

Protected Attributes

XFILE::CFilem_pFile
 
int m_iMode
 
std::unique_ptr< uint8_t[]> m_pBuffer
 
uint8_tm_BufferPos
 
size_t m_BufferRemain
 

Member Enumeration Documentation

◆ Mode

Enumerator
load 
store 

Constructor & Destructor Documentation

◆ CArchive()

CArchive::CArchive ( XFILE::CFile * pFile,
int mode )

◆ ~CArchive()

CArchive::~CArchive ( )

Member Function Documentation

◆ Close()

void CArchive::Close ( )

◆ IsLoading()

bool CArchive::IsLoading ( ) const

◆ IsStoring()

bool CArchive::IsStoring ( ) const

◆ operator<<() [1/19]

CArchive & CArchive::operator<< ( bool b)

◆ operator<<() [2/19]

CArchive & CArchive::operator<< ( char c)

◆ operator<<() [3/19]

CArchive & CArchive::operator<< ( const CVariant & variant)

◆ operator<<() [4/19]

CArchive & CArchive::operator<< ( const KODI::TIME::SystemTime & time)

◆ operator<<() [5/19]

CArchive & CArchive::operator<< ( const std::string & str)

◆ operator<<() [6/19]

CArchive & CArchive::operator<< ( const std::vector< int > & iArray)

◆ operator<<() [7/19]

CArchive & CArchive::operator<< ( const std::vector< std::string > & strArray)

◆ operator<<() [8/19]

CArchive & CArchive::operator<< ( const std::wstring & wstr)

◆ operator<<() [9/19]

CArchive & CArchive::operator<< ( double d)

◆ operator<<() [10/19]

CArchive & CArchive::operator<< ( float f)

◆ operator<<() [11/19]

CArchive & CArchive::operator<< ( IArchivable & obj)

◆ operator<<() [12/19]

CArchive & CArchive::operator<< ( int i)

◆ operator<<() [13/19]

CArchive & CArchive::operator<< ( long int l)

◆ operator<<() [14/19]

CArchive & CArchive::operator<< ( long long int ll)

◆ operator<<() [15/19]

CArchive & CArchive::operator<< ( short int s)

◆ operator<<() [16/19]

CArchive & CArchive::operator<< ( unsigned int ui)

◆ operator<<() [17/19]

CArchive & CArchive::operator<< ( unsigned long int ul)

◆ operator<<() [18/19]

CArchive & CArchive::operator<< ( unsigned long long int ull)

◆ operator<<() [19/19]

CArchive & CArchive::operator<< ( unsigned short int us)

◆ operator>>() [1/19]

CArchive & CArchive::operator>> ( bool & b)
inline

◆ operator>>() [2/19]

CArchive & CArchive::operator>> ( char & c)
inline

◆ operator>>() [3/19]

CArchive & CArchive::operator>> ( CVariant & variant)

◆ operator>>() [4/19]

CArchive & CArchive::operator>> ( double & d)
inline

◆ operator>>() [5/19]

CArchive & CArchive::operator>> ( float & f)
inline

◆ operator>>() [6/19]

CArchive & CArchive::operator>> ( IArchivable & obj)

◆ operator>>() [7/19]

CArchive & CArchive::operator>> ( int & i)
inline

◆ operator>>() [8/19]

CArchive & CArchive::operator>> ( KODI::TIME::SystemTime & time)

◆ operator>>() [9/19]

CArchive & CArchive::operator>> ( long int & l)
inline

◆ operator>>() [10/19]

CArchive & CArchive::operator>> ( long long int & ll)
inline

◆ operator>>() [11/19]

CArchive & CArchive::operator>> ( short int & s)
inline

◆ operator>>() [12/19]

CArchive & CArchive::operator>> ( std::string & str)

◆ operator>>() [13/19]

CArchive & CArchive::operator>> ( std::vector< int > & iArray)

◆ operator>>() [14/19]

CArchive & CArchive::operator>> ( std::vector< std::string > & strArray)

◆ operator>>() [15/19]

CArchive & CArchive::operator>> ( std::wstring & wstr)

◆ operator>>() [16/19]

CArchive & CArchive::operator>> ( unsigned int & ui)
inline

◆ operator>>() [17/19]

CArchive & CArchive::operator>> ( unsigned long int & ul)
inline

◆ operator>>() [18/19]

CArchive & CArchive::operator>> ( unsigned long long int & ull)
inline

◆ operator>>() [19/19]

CArchive & CArchive::operator>> ( unsigned short int & us)
inline

◆ streamin()

CArchive & CArchive::streamin ( void * dataPtr,
size_t size )
inlineprotected

◆ streamout()

CArchive & CArchive::streamout ( const void * dataPtr,
size_t size )
inlineprotected

Member Data Documentation

◆ m_BufferPos

uint8_t* CArchive::m_BufferPos
protected

◆ m_BufferRemain

size_t CArchive::m_BufferRemain
protected

◆ m_iMode

int CArchive::m_iMode
protected

◆ m_pBuffer

std::unique_ptr<uint8_t[]> CArchive::m_pBuffer
protected

◆ m_pFile

XFILE::CFile* CArchive::m_pFile
protected

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