Nu tijdelijk, met extra main.cpp!
This commit is contained in:
parent
8a118721c9
commit
589c517479
1 changed files with 19 additions and 0 deletions
19
AMF_Tester/main.cpp
Normal file
19
AMF_Tester/main.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#define DEBUG 10 //maximum debugging level evah
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include "amf.cpp"
|
||||
|
||||
int main( int argc, char * argv[] ) {
|
||||
if( argc != 2 ) { return 1; }
|
||||
std::string temp;
|
||||
std::ifstream ifs( argv[1] );
|
||||
while( ifs.good() ) {
|
||||
temp += ifs.get();
|
||||
}
|
||||
static AMFType amfdata("empty", (unsigned char)0xFF);
|
||||
amfdata = parseAMF( temp );
|
||||
amfdata.Print( );
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Reference in a new issue