#include "cconsolestream.h"
#include "ccontenthandler.h"
using namespace P6R;
using namespace P6EXAMPLES;
namespace {
{
if(!pStr) return eInvalidArg;
if(!ppIface) return eInvalidArg;
*ppIface = NULL;
if(
P6SUCCEEDED(err = cpInit->initialize(pConsole,pStr))) {
}
}
return err;
}
{
"{" \
"\"glossary\": {" \
" \"title\": \"example glossary\"," \
" \"GlossDiv\": {" \
" \"title\": \"S\"," \
" \"GlossList\": {" \
" \"GlossEntry\": {" \
" \"ID\": \"SGML\"," \
" \"SortAs\": \"SGML\"," \
" \"GlossTerm\": \"Standard Generalized Markup Language\"," \
" \"Acronym\": \"SGML\"," \
" \"Abbrev\": \"ISO 8879:1986\"," \
" \"GlossDef\": {" \
" \"para\": \"A meta-markup language, used to create markup languages such as DocBook.\"," \
" \"GlossSeeAlso\": [\"GML\", \"XML\"]" \
" }," \
" \"GlossSee\": \"markup\"" \
" }" \
" }" \
" }" \
" }" \
"}}";
cpStr->
strlen(pszTemp,1024,&bufSize);
}
}
}
}
}
}
}
else {
pConsole->
writeStdout(
"\nERROR: Unable to get runtime interface %1$ [ %2$ ]",&args[0],2,NULL);
}
return err;
}
}
int main(int argc,char *argv[])
{
runJSON(cpConsole, cpDataStream);
cpConsole = NULL;
}
}
else {
printf("ERROR: Failed to initialize the loader [ %x ]\n",err);
}
}
else {
printf("ERROR: Failed to create CConsoleStream [ %x ]\n",err);
}
return err;
}