Cleanup
This commit is contained in:
parent
32ffc09f0e
commit
bce0cda879
18 changed files with 13 additions and 326 deletions
22
tools/AMF_Tester/main.cpp
Normal file
22
tools/AMF_Tester/main.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
/// \file AMF_Tester/main.cpp
|
||||
/// Debugging tool for AMF data.
|
||||
/// Expects AMF data through stdin, outputs human-readable information to stderr.
|
||||
|
||||
#define DEBUG 10 //maximum debugging level
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include "../../util/amf.h"
|
||||
|
||||
/// Debugging tool for AMF data.
|
||||
/// Expects AMF data through stdin, outputs human-readable information to stderr.
|
||||
int main() {
|
||||
std::string temp;
|
||||
while (std::cin.good()){temp += std::cin.get();}//read all of std::cin to temp
|
||||
temp.erase(temp.size()-1, 1);//strip the invalid last character
|
||||
AMF::Object amfdata = AMF::parse(temp);//parse temp into an AMF::Object
|
||||
amfdata.Print();//pretty-print the object
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue