#include <bFile.h>
|
int | getNextBlock (bChunkInd *dataChunk, const char *dataPtr, const int flags) |
|
void | safeSwapPtr (char *dst, const char *src) |
|
virtual void | parseHeader () |
|
virtual void | parseData ()=0 |
|
void | resolvePointersMismatch () |
|
void | resolvePointersChunk (const bChunkInd &dataChunk, int verboseMode) |
| this loop only works fine if the Blender DNA structure of the file matches the headerfiles
|
|
int | resolvePointersStructRecursive (char *strcPtr, int old_dna, int verboseMode, int recursion) |
|
void | parseStruct (char *strcPtr, char *dtPtr, int old_dna, int new_dna, bool fixupPointers) |
|
void | getMatchingFileDNA (short *old, const char *lookupName, const char *lookupType, char *strcData, char *data, bool fixupPointers) |
|
char * | getFileElement (short *firstStruct, char *lookupName, char *lookupType, char *data, short **foundPos) |
|
void | swap (char *head, class bChunkInd &ch, bool ignoreEndianFlag) |
|
void | swapData (char *data, short type, int arraySize, bool ignoreEndianFlag) |
|
void | swapStruct (int dna_nr, char *data, bool ignoreEndianFlag) |
|
void | swapLen (char *dataPtr) |
|
void | swapDNA (char *ptr) |
|
char * | readStruct (char *head, class bChunkInd &chunk) |
|
char * | getAsString (int code) |
|
virtual void | parseInternal (int verboseMode, char *memDna, int memDnaLength) |
|
Definition at line 48 of file bFile.h.
◆ bFile() [1/2]
bFile::bFile |
( |
const char * | filename, |
|
|
const char | headerString[7] ) |
◆ bFile() [2/2]
bFile::bFile |
( |
char * | memoryBuffer, |
|
|
int | len, |
|
|
const char | headerString[7] ) |
◆ ~bFile()
◆ addDataBlock()
virtual void bParse::bFile::addDataBlock |
( |
char * | dataBlock | ) |
|
|
pure virtual |
◆ dumpChunks()
◆ findLibPointer()
void * bFile::findLibPointer |
( |
void * | ptr | ) |
|
◆ getAsString()
char * bParse::bFile::getAsString |
( |
int | code | ) |
|
|
protected |
◆ getFileDNA()
bDNA * bParse::bFile::getFileDNA |
( |
| ) |
|
|
inline |
◆ getFileElement()
char * bFile::getFileElement |
( |
short * | firstStruct, |
|
|
char * | lookupName, |
|
|
char * | lookupType, |
|
|
char * | data, |
|
|
short ** | foundPos ) |
|
protected |
◆ getFlags()
int bParse::bFile::getFlags |
( |
| ) |
const |
|
inline |
◆ getLibPointers()
bPtrMap & bParse::bFile::getLibPointers |
( |
| ) |
|
|
inline |
◆ getMatchingFileDNA()
void bFile::getMatchingFileDNA |
( |
short * | old, |
|
|
const char * | lookupName, |
|
|
const char * | lookupType, |
|
|
char * | strcData, |
|
|
char * | data, |
|
|
bool | fixupPointers ) |
|
protected |
◆ getNextBlock()
int bFile::getNextBlock |
( |
bChunkInd * | dataChunk, |
|
|
const char * | dataPtr, |
|
|
const int | flags ) |
|
protected |
◆ getVersion()
int bParse::bFile::getVersion |
( |
| ) |
const |
|
inline |
◆ ok()
◆ parse()
virtual void bParse::bFile::parse |
( |
int | verboseMode | ) |
|
|
pure virtual |
◆ parseData()
virtual void bParse::bFile::parseData |
( |
| ) |
|
|
protectedpure virtual |
◆ parseHeader()
void bFile::parseHeader |
( |
| ) |
|
|
protectedvirtual |
◆ parseInternal()
void bFile::parseInternal |
( |
int | verboseMode, |
|
|
char * | memDna, |
|
|
int | memDnaLength ) |
|
protectedvirtual |
mFileDNA->init will convert part of DNA file endianness to current CPU endianness if necessary
Definition at line 195 of file bFile.cpp.
◆ parseStruct()
void bFile::parseStruct |
( |
char * | strcPtr, |
|
|
char * | dtPtr, |
|
|
int | old_dna, |
|
|
int | new_dna, |
|
|
bool | fixupPointers ) |
|
protected |
◆ preSwap()
◆ readStruct()
char * bFile::readStruct |
( |
char * | head, |
|
|
class bChunkInd & | chunk ) |
|
protected |
don't try to convert Link block data, just memcpy it. Other data can be converted.
Definition at line 619 of file bFile.cpp.
◆ resolvePointers()
void bFile::resolvePointers |
( |
int | verboseMode | ) |
|
Resolve pointers replaces the original pointers in structures, and linked lists by the new in-memory structures.
Definition at line 1391 of file bFile.cpp.
◆ resolvePointersChunk()
void bFile::resolvePointersChunk |
( |
const bChunkInd & | dataChunk, |
|
|
int | verboseMode ) |
|
protected |
this loop only works fine if the Blender DNA structure of the file matches the headerfiles
Definition at line 1166 of file bFile.cpp.
◆ resolvePointersMismatch()
void bFile::resolvePointersMismatch |
( |
| ) |
|
|
protected |
◆ resolvePointersStructRecursive()
int bFile::resolvePointersStructRecursive |
( |
char * | strcPtr, |
|
|
int | old_dna, |
|
|
int | verboseMode, |
|
|
int | recursion ) |
|
protected |
◆ safeSwapPtr()
void bFile::safeSwapPtr |
( |
char * | dst, |
|
|
const char * | src ) |
|
protected |
◆ setFileDNA()
void bFile::setFileDNA |
( |
int | verboseMode, |
|
|
char * | buffer, |
|
|
int | len ) |
|
virtual |
mFileDNA->init will convert part of DNA file endianness to current CPU endianness if necessary
Definition at line 183 of file bFile.cpp.
◆ setFileDNAisMemoryDNA()
void bParse::bFile::setFileDNAisMemoryDNA |
( |
| ) |
|
|
inline |
◆ swap()
void bFile::swap |
( |
char * | head, |
|
|
class bChunkInd & | ch, |
|
|
bool | ignoreEndianFlag ) |
|
protected |
◆ swapData()
void bFile::swapData |
( |
char * | data, |
|
|
short | type, |
|
|
int | arraySize, |
|
|
bool | ignoreEndianFlag ) |
|
protected |
◆ swapDNA()
void bFile::swapDNA |
( |
char * | ptr | ) |
|
|
protected |
◆ swapLen()
void bFile::swapLen |
( |
char * | dataPtr | ) |
|
|
protected |
◆ swapStruct()
void bFile::swapStruct |
( |
int | dna_nr, |
|
|
char * | data, |
|
|
bool | ignoreEndianFlag ) |
|
protected |
◆ updateOldPointers()
void bFile::updateOldPointers |
( |
| ) |
|
◆ write()
virtual int bParse::bFile::write |
( |
const char * | fileName, |
|
|
bool | fixupPointers = false ) |
|
pure virtual |
◆ writeChunks()
void bFile::writeChunks |
( |
FILE * | fp, |
|
|
bool | fixupPointers ) |
|
virtual |
don't try to convert Link block data, just memcpy it. Other data can be converted.
Definition at line 1499 of file bFile.cpp.
◆ writeDNA()
virtual void bParse::bFile::writeDNA |
( |
FILE * | fp | ) |
|
|
pure virtual |
◆ writeFile()
void bFile::writeFile |
( |
const char * | fileName | ) |
|
◆ m_chunkPtrPtrMap
◆ m_chunks
◆ m_headerString
char bParse::bFile::m_headerString[7] |
|
protected |
◆ m_pointerFixupArray
◆ m_pointerPtrFixupArray
◆ mDataPointers
bPtrMap bParse::bFile::mDataPointers |
|
protected |
◆ mDataStart
int bParse::bFile::mDataStart |
|
protected |
◆ mFileBuffer
char* bParse::bFile::mFileBuffer |
|
protected |
◆ mFileDNA
bDNA* bParse::bFile::mFileDNA |
|
protected |
◆ mFileLen
int bParse::bFile::mFileLen |
|
protected |
◆ mFlags
int bParse::bFile::mFlags |
|
protected |
◆ mLibPointers
bPtrMap bParse::bFile::mLibPointers |
|
protected |
◆ mMemoryDNA
bDNA* bParse::bFile::mMemoryDNA |
|
protected |
◆ mOwnsBuffer
bool bParse::bFile::mOwnsBuffer |
|
protected |
◆ mVersion
int bParse::bFile::mVersion |
|
protected |
The documentation for this class was generated from the following files: