26 #ifndef __PYDUMPVISITOR_H_INCL__
27 #define __PYDUMPVISITOR_H_INCL__
34 PyDumpVisitor(
const char* pfx =
"",
bool full_nested =
false );
40 virtual void _print(
const char* fmt, ... ) = 0;
41 virtual void _dump(
const char* pfx,
const uint8* data,
size_t len ) = 0;
84 void _print(
const char* fmt, ... );
85 void _dump(
const char* pfx,
const uint8* data,
size_t len );
97 PyFileDumpVisitor( FILE* _file,
const char* pfx =
"",
bool full_nested =
false,
bool full_hex =
false );
104 void _print(
const char* fmt, ... );
105 void _dump(
const char* pfx,
const uint8* data,
size_t len );
PyLogDumpVisitor(LogType log_type, LogType log_hex_type, const char *pfx="", bool full_nested=false, bool full_hex=false)
bool VisitLong(const PyLong *rep)
bool VisitString(const PyString *rep)
bool VisitTuple(const PyTuple *rep)
the nested types Visitor
void _dump(const char *pfx, const uint8 *data, size_t len)
Python floating point number.
bool VisitWString(const PyWString *rep)
bool VisitInteger(const PyInt *rep)
primitive data visitors
bool VisitList(const PyList *rep)
void _print(const char *fmt,...)
PyDumpVisitor(const char *pfx="", bool full_nested=false)
PyFileDumpVisitor(FILE *_file, const char *pfx="", bool full_nested=false, bool full_hex=false)
bool VisitBoolean(const PyBool *rep)
virtual void _dump(const char *pfx, const uint8 *data, size_t len)=0
bool VisitDict(const PyDict *rep)
bool VisitToken(const PyToken *rep)
bool VisitPackedRow(const PyPackedRow *rep)
PackedRow type visitor.
bool VisitNone(const PyNone *rep)
void _print(const char *fmt,...)
bool VisitReal(const PyFloat *rep)
const LogType mLogHexType
bool VisitObjectEx(const PyObjectEx *rep)
Python token (eg. class name).
bool VisitSubStream(const PySubStream *rep)
bool VisitChecksumedStream(const PyChecksumedStream *rep)
LogType logHexType() const
bool VisitObject(const PyObject *rep)
Object type visitor.
virtual void _print(const char *fmt,...)=0
bool VisitBuffer(const PyBuffer *rep)
void _dump(const char *pfx, const uint8 *data, size_t len)
bool VisitSubStruct(const PySubStruct *rep)
wrapper types Visitor