Changed: #1440 Some useful stuff

--HG--
branch : build_pipeline_v3
hg/feature/build_pipeline_v3
kaetemi 12 years ago
parent 8a1b32561d
commit 90956e39d9

@ -226,7 +226,7 @@ void CStorageRaw::toString(std::ostream &ostream, const std::string &pad)
for (TType::size_type i = 0; i < Value.size(); ++i) for (TType::size_type i = 0; i < Value.size(); ++i)
{ {
char c = Value[i]; char c = Value[i];
if (c == 0) ostream << "."; if (c == 0 || c == 123 || c == 125) ostream << ".";
else if (c >= 32 && c <= 126) ostream << c; else if (c >= 32 && c <= 126) ostream << c;
else else
{ {

@ -23,11 +23,11 @@
#include "../max/class_data.h" #include "../max/class_data.h"
#include "../max/config.h" #include "../max/config.h"
//static const char *filename = "/srv/work/database/interfaces/anims_max/cp_fy_hof_species.max"; static const char *filename = "/srv/work/database/interfaces/anims_max/cp_fy_hof_species.max";
static const char *filename = "/home/kaetemi/source/minimax/GE_Acc_MikotoBaniere.max"; //static const char *filename = "/home/kaetemi/source/minimax/GE_Acc_MikotoBaniere.max";
//static const char *filename = "/home/kaetemi/3dsMax/scenes/test2008.max"; //static const char *filename = "/home/kaetemi/3dsMax/scenes/test2008.max";
//static const char *filename = "/home/kaetemi/3dsMax/scenes/teapot_test_scene.max"; //static const char *filename = "/home/kaetemi/3dsMax/scenes/teapot_test_scene.max";
static const char *streamname = "Config"; static const char *streamname = "Scene";
// int __stdcall WinMain(void *, void *, void *, int) // int __stdcall WinMain(void *, void *, void *, int)
int main(int argc, char **argv) int main(int argc, char **argv)
@ -79,7 +79,7 @@ int main(int argc, char **argv)
//gsf_input_dump(input, 1); // just a regular hex dump of this input stream //gsf_input_dump(input, 1); // just a regular hex dump of this input stream
PIPELINE::MAX::CStorageStream instream(input); PIPELINE::MAX::CStorageStream instream(input);
//dumpContainer(instream, ""); //dumpContainer(instream, "");
PIPELINE::MAX::CConfig ctr; PIPELINE::MAX::CStorageContainer ctr;
ctr.serial(instream); ctr.serial(instream);
ctr.toString(std::cout); ctr.toString(std::cout);
std::cout << "\n"; std::cout << "\n";

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save