37 mResolver( _resolver )
66 FILE *f = fopen(file,
"r");
69 char *buf =
new char[10240];
70 while(fgets(buf, 10240, f)) {
72 if(*buf ==
'\n' || *buf ==
'\r' || *buf ==
'\0' || *buf ==
'|')
76 while(*p !=
'|' && *p !=
'\0' && *p !=
'\n' && *p !=
'\r') {
79 if(*p ==
'\0' || *p ==
'\n' || *p ==
'\r')
83 if(*p ==
'\n' || *p ==
'\r' || *p ==
'\0')
87 while(*e !=
'\0' && *e !=
'\n' && *e !=
'\r') {
91 uint32 v = strtoul(buf, NULL, 10);
102 FILE *f = fopen(file,
"r");
105 char *buf =
new char[10240];
106 while(fgets(buf, 10240, f)) {
108 if(*buf ==
'\n' || *buf ==
'\r' || *buf ==
'\0' || *buf ==
'|')
112 while(*p !=
'|' && *p !=
'\0' && *p !=
'\n' && *p !=
'\r') {
115 if(*p ==
'\0' || *p ==
'\n' || *p ==
'\r')
119 if(*p ==
'\n' || *p ==
'\r' || *p ==
'\0')
123 while(*e !=
'\0' && *e !=
'\n' && *e !=
'\r') {
137 if(value > 127900000000000000LL && value < 130000000000000000LL) {
145 std::map<uint32, std::string>::const_iterator res;
149 return(res->second.c_str());
155 std::map<std::string, std::string>::const_iterator res;
159 return(res->second.c_str());
bool VisitString(const PyString *rep)
std::map< std::string, std::string > m_strRecords
std::map< uint32, std::string > m_intRecords
bool VisitInteger(const PyInt *rep)
primitive data visitors
void _print(const char *fmt,...)
PyLookupResolver * resolver() const
static const uint32 MIN_RESOLVABLE_INT
const char * LookupString(const char *value) const
bool VisitInteger(const PyInt *rep)
primitive data visitors
const std::string & content() const
Get the PyString content.
const char * LookupInt(int64 value) const
bool VisitString(const PyString *rep)
bool LoadIntFile(const char *file)
std::string Win32TimeToString(int64 win32t)
bool LoadStringFile(const char *file)
const char * _pfx() const
PyLookupDumpVisitor(PyLookupResolver *_resolver, LogType log_type, LogType log_hex_type, const char *pfx="", bool full_nested=false, bool full_hex=false)