Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
sw::ImplHCF Class Reference

#include <ImplHCF.h>

Public Member Functions

 ImplHCF ()
 
 ~ImplHCF ()
 
Chunk GetRootChunk ()
 
Chunk CreateRootChunk ()
 
bool OpenFile (const filesystem::Path &filePath, bool writeDirect)
 
bool WriteFile (const filesystem::Path &filePath)
 
bool LoadFile (const filesystem::Path &filePath, bool readOnly)
 
Attribute AddGlobalAttribute (AttributeType type, const DataPtr data, Size dataSize)
 
Attribute AddAttribute (AttributeReprPtr &list, AttributeType type, const DataPtr data, Size dataSize)
 
Size ComputeWholeSize (Attribute attrib)
 
Size ReserveMemory (Size dataSize)
 
FILE * GetFile ()
 
bool CanAddGlobalAttrib () const
 

Public Attributes

bool m_directWrite: 1
 
bool m_attributesWritten: 1
 
bool m_fileReadOnly: 1
 

Private Member Functions

 FRIEND_CLASS_TESTER (HCF)
 
 FRIEND_CLASS_TESTER (ImplHCF)
 

Private Attributes

FileHeader m_header
 
ChunkReprPtr m_rootChunk
 Main Chunk. More...
 
AttributeReprPtr m_fileAttributes
 Top level attributes. More...
 
FILE * m_file
 
Size m_writePtr
 

Constructor & Destructor Documentation

sw::ImplHCF::ImplHCF ( )
explicit
sw::ImplHCF::~ImplHCF ( )

Member Function Documentation

Attribute sw::ImplHCF::AddAttribute ( AttributeReprPtr &  list,
AttributeType  type,
const DataPtr  data,
Size  dataSize 
)
Attribute sw::ImplHCF::AddGlobalAttribute ( AttributeType  type,
const DataPtr  data,
Size  dataSize 
)
bool sw::ImplHCF::CanAddGlobalAttrib ( ) const
Size sw::ImplHCF::ComputeWholeSize ( Attribute  attrib)
Chunk sw::ImplHCF::CreateRootChunk ( )
sw::ImplHCF::FRIEND_CLASS_TESTER ( HCF  )
private
sw::ImplHCF::FRIEND_CLASS_TESTER ( ImplHCF  )
private
FILE* sw::ImplHCF::GetFile ( )
inline
Chunk sw::ImplHCF::GetRootChunk ( )
bool sw::ImplHCF::LoadFile ( const filesystem::Path filePath,
bool  readOnly 
)
bool sw::ImplHCF::OpenFile ( const filesystem::Path filePath,
bool  writeDirect 
)
Size sw::ImplHCF::ReserveMemory ( Size  dataSize)
bool sw::ImplHCF::WriteFile ( const filesystem::Path filePath)

Member Data Documentation

bool sw::ImplHCF::m_attributesWritten
bool sw::ImplHCF::m_directWrite
FILE* sw::ImplHCF::m_file
private
AttributeReprPtr sw::ImplHCF::m_fileAttributes
private

Top level attributes.

bool sw::ImplHCF::m_fileReadOnly
FileHeader sw::ImplHCF::m_header
private
ChunkReprPtr sw::ImplHCF::m_rootChunk
private

Main Chunk.

Size sw::ImplHCF::m_writePtr
private

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