Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ccontenthandler.cpp
#include "ccontenthandler.h"
using namespace P6R;
P6DECLARE_IID( IContentHandlerInit );
namespace P6EXAMPLES {
CContentHandler::CContentHandler() : m_bInitialized( P6FALSE ),
m_cpStr( ),
m_cpConsole( ),
m_cpLoc( ),
m_startPair( 0 ),
m_value( 0 ),
m_startObj( 0 ),
m_startArray( 0 )
{ }
//
CContentHandler::~CContentHandler()
{
}
//
// P6COM Helper macro to provide the implementation
// of standard COM Methods:
//
// createInstance() - Used to easily create instance of this component.
// Using this method to create components is preferred
// because it returns an interface which provides
// a well defined API for this component and prevents
// access to the classes internals.
// queryInterface() - Used to query the component for interfaces
// addref() - Increased the interfaces reference count
// release() - Decreases the interfaces reference count
// and destroys the component when the count
// reaches zero.
//
// These helper macros are provided for convenience and currently support
// up to 17 interfaces (this example exposes 2 interfaces). The implementation
// provided by these macros are threadsafe. You can find the defintions
// in p6comhlpr.h. If you need something more that what they provide,
// you are always free implement your own methods.
//
// See CConsoleStream in this example (in ex-load-jsn.cpp) for a non-threadsafe
// example of implementing these methods.
//
// Please note that these macros may only be used in code that is called
// after p6InitializeLoader() has been called.
//
P6_IMPLEMENT_ICOM2(CContentHandler,IContentHandlerInit,p6IJSONContentHandler);
//
P6COMMETHODIMPL CContentHandler::initialize( P6R::p6IConsole *pConsole, P6R::p6ISafeString* pStr )
{
if (m_bInitialized) return eAlreadyInitialized;
if (!pConsole || !pStr ) return eInvalidArg;
m_cpConsole = pConsole;
m_cpStr = pStr;
m_bInitialized = P6TRUE;
return eOk;
}
//
P6COMMETHODIMPL CContentHandler::endDocument()
{
if (!m_bInitialized) return eNotInitialized;
m_cpConsole->writeStdout("-> hit endDocument()\n",NULL,0,NULL);
return eOk;
}
//
P6COMMETHODIMPL CContentHandler:: endObject( P6UINT32 nestingLevel )
{
P6ARG args[2];
if (!m_bInitialized) return eNotInitialized;
P6AI_UINT32(&args[0],nestingLevel);
P6AI_UINT32(&args[1],m_startObj);
m_cpConsole->writeStdout("-> entered endObject() %1$ %2$\n",&args[0],2,NULL);
if (0 != (nestingLevel - m_startObj)) {
P6AI_UINT32(&args[0],(nestingLevel - m_startObj));
m_cpConsole->writeStdout("-> Error: endObject - expected 0 but got %d\n",&args[0],1,NULL);
}
m_startObj--;
return eOk;
}
//
P6COMMETHODIMPL CContentHandler::endArray( P6UINT32 nestingLevel )
{
P6ARG args[2];
if (!m_bInitialized) return eNotInitialized;
P6AI_UINT32(&args[0],nestingLevel);
P6AI_UINT32(&args[1],m_startArray);
m_cpConsole->writeStdout("-> entered endArray() %1$ %2$\n",&args[0],2,NULL);
if (0 != (nestingLevel - m_startArray)) {
P6AI_UINT32(&args[0],(nestingLevel - m_startArray));
m_cpConsole->writeStdout("-> Error: endArray - expected 0 but got %1$",&args[0],1,NULL);
}
m_startArray--;
return eOk;
}
// The given locator is just like a SAX2 locator, it can be used to identify where in the stream of JSON we are currently
// parsing. Thus this can be used for warning messages, logging, etc.
//
P6COMMETHODIMPL CContentHandler::setDocumentLocator( p6IJSONLocator* pObject )
{
if (!m_bInitialized) return eNotInitialized;
if (NULL == pObject) return eInvalidArg;
m_cpLoc = pObject;
return eOk;
}
//
P6COMMETHODIMPL CContentHandler::startDocument()
{
if (!m_bInitialized) return eNotInitialized;
m_cpConsole->writeStdout("-> entered startDocument()\n",NULL,0,NULL);
return eOk;
}
//
P6COMMETHODIMPL CContentHandler::startObject( P6UINT32 nestingLevel )
{
P6ARG args[2];
if (!m_bInitialized) return eNotInitialized;
P6AI_UINT32(&args[0],nestingLevel);
P6AI_UINT32(&args[1],m_startObj);
m_cpConsole->writeStdout("-> entered startObject() %1$ %2$\n",&args[0],2,NULL);
if (1 != (nestingLevel - m_startObj)) {
P6AI_UINT32(&args[0],(nestingLevel - m_startObj));
m_cpConsole->writeStdout("-> Error: startObj - expected 1 but got %1$",&args[0],1,NULL);
}
m_startObj++;
return eOk;
}
//
P6COMMETHODIMPL CContentHandler::startPair( P6JSONSTRING* pName )
{
P6INT32 iResult = -1;
P6ERR err = eOk;
P6ARG args[2];
if (!m_bInitialized) return eNotInitialized;
P6AI_CHARPTR(&args[0],pName->pStart);
P6AI_UINT32(&args[0],pName->length);
m_cpConsole->writeStdout("-> entered startPair() [ %1$ ] %2$\n",&args[0],2,NULL);
switch( m_startPair ) {
case 0:
if (6 != pName->length) {
P6AI_UINT32(&args[0],pName->length);
m_cpConsole->writeStdout("-> Error: startPair - expected 6 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"menu\"", pName->pStart, 6, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: startPair - expected 0 but got %1$",&args[0],1,NULL);
}
m_startPair++;
break;
case 1:
if (4 != pName->length) {
P6AI_UINT32(&args[0],pName->length);
m_cpConsole->writeStdout("-> Error: startPair - expected 4 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"id\"", pName->pStart, 4, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: startPair - expected 0 but got %1$",&args[0],1,NULL);
}
m_startPair++;
break;
case 2: case 5: case 7: case 9:
if (7 != pName->length) {
P6AI_UINT32(&args[0],pName->length);
m_cpConsole->writeStdout("-> Error: startPair - expected 7 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"value\"", pName->pStart, 7, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: startPair - expected 0 but got %1$",&args[0],1,NULL);
}
m_startPair++;
break;
case 3:
if (7 != pName->length) {
P6AI_UINT32(&args[0],pName->length);
m_cpConsole->writeStdout("-> Error: startPair - expected 7 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"popup\"", pName->pStart, 7, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: startPair - expected 0 but got %1$",&args[0],1,NULL);
}
m_startPair++;
break;
case 4:
if (10 != pName->length) {
P6AI_UINT32(&args[0],pName->length);
m_cpConsole->writeStdout("-> Error: startPair - expected 10 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"menuitem\"", pName->pStart, 10, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: startPair - expected 0 but got %1$",&args[0],1,NULL);
}
m_startPair++;
break;
case 6: case 8: case 10:
if (9 != pName->length) {
P6AI_UINT32(&args[0],pName->length);
m_cpConsole->writeStdout("-> Error: startPair - expected 9 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"onclick\"", pName->pStart, 9, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: startPair - expected 0 but got %1$",&args[0],1,NULL);
}
m_startPair++;
break;
case 11:
if (10 != pName->length) {
P6AI_UINT32(&args[0],pName->length);
m_cpConsole->writeStdout("-> Error: startPair - expected 10 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"readings\"", pName->pStart, 10, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: startPair - expected 0 but got %1$",&args[0],1,NULL);
}
m_startPair++;
break;
case 12:
if (9 != pName->length) {
P6AI_UINT32(&args[0],pName->length);
m_cpConsole->writeStdout("-> Error: startPair - expected 9 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"encoded\"", pName->pStart, 9, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: startPair - expected 0 but got %1$",&args[0],1,NULL);
}
m_startPair++;
break;
default:
P6AI_UINT32(&args[0],m_startPair);
m_cpConsole->writeStdout("Error: startPair out of range got [ %1$ ]\n",&args[0],1,NULL);
break;
}
return eOk;
}
//
P6COMMETHODIMPL CContentHandler::startArray( P6UINT32 nestingLevel )
{
P6ARG args[1];
if (!m_bInitialized) return eNotInitialized;
P6AI_UINT32(&args[0],nestingLevel);
m_cpConsole->writeStdout("-> entered startArray() %1$\n",&args[0],1,NULL);
if (1 != (nestingLevel - m_startArray)) {
P6AI_UINT32(&args[0],(nestingLevel - m_startArray));
m_cpConsole->writeStdout("-> Error: startArray - expected 1 but got %1$",&args[0],1,NULL);
}
m_startArray++;
return eOk;
}
//
{
P6JSONSTRING jstring;
P6WCHAR wideString[200];
P6INT32 iResult = -1;
P6UINT32 length = 0;
P6ERR err = eOk;
P6ARG args[2];
if (!m_bInitialized) return eNotInitialized;
P6AI_UINT32(&args[0],(P6UINT32) pValue->type);
P6AI_UINT32(&args[1],(P6UINT32) pValue->jstring.length);
m_cpConsole->writeStdout("-> entered value() %1$ %2$\n",&args[0],2,NULL);
switch( m_value ) {
case 0:
if (P6JSON_TYPE_STR != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (6 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value - 6 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"file\"", pValue->jstring.pStart, 6, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 1:
if (P6JSON_TYPE_STR != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (6 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value - 6 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"File\"", pValue->jstring.pStart, 6, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 2:
if (P6JSON_TYPE_STR != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (5 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value - 5 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"New\"", pValue->jstring.pStart, 5, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 3:
if (P6JSON_TYPE_STR != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (16 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value - 16 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"CreateNewDoc()\"", pValue->jstring.pStart, 16, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 4:
if (P6JSON_TYPE_STR != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (6 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value - 6 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"Open\"", pValue->jstring.pStart, 6, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 5:
if (P6JSON_TYPE_STR != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (11 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value - 11 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"OpenDoc()\"", pValue->jstring.pStart, 11, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 6:
if (P6JSON_TYPE_STR != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (7 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value - 7 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"Close\"", pValue->jstring.pStart, 7, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 7:
if (P6JSON_TYPE_STR != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (12 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value - 12 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"CloseDoc()\"", pValue->jstring.pStart, 12, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 8:
if (P6JSON_TYPE_INTEGER != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (3 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value - 3 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "-30", pValue->jstring.pStart, 3, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
if ((-30) != pValue->integer) {
P6AI_INT32(&args[0],pValue->integer);
m_cpConsole->writeStdout("-> ERROR: value - -30 but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 9:
if (P6JSON_TYPE_INTEGER != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (2 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value - 2 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "44", pValue->jstring.pStart, 2, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
if (44 != pValue->integer) {
P6AI_INT32(&args[0],pValue->integer);
m_cpConsole->writeStdout("-> ERROR: value - 44 but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 10:
if (P6JSON_TYPE_REAL != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (6 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value - 6 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "100.34", pValue->jstring.pStart, 6, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
if ((100.34) != pValue->real) {
P6AI_FLOAT(&args[0],pValue->real);
m_cpConsole->writeStdout("-> ERROR: value - 100.34 but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 11:
if (P6JSON_TYPE_REAL != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (5 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value - 5 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "3.5E4", pValue->jstring.pStart, 5, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
if (35000 != pValue->real) {
P6AI_FLOAT(&args[0],pValue->real);
m_cpConsole->writeStdout("-> ERROR: value - 35000 but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 12:
if (P6JSON_TYPE_REAL != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (6 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value - 6 but got %1$",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "3.5e-4", pValue->jstring.pStart, 6, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
if ((0.000350) != pValue->real) {
P6AI_FLOAT(&args[0],pValue->real);
m_cpConsole->writeStdout("-> ERROR: value - 0.000350 but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 13:
if (P6JSON_TYPE_BOOL != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout("-> ERROR: value - %1$ but got %2$",&args[0],2,NULL);
}
if (P6TRUE != pValue->boolean) {
P6AI_BOOL(&args[0],pValue->boolean);
m_cpConsole->writeStdout("-> ERROR: value - P6TRUE but got %1$",&args[0],1,NULL);
}
m_value++;
break;
case 14:
if (P6JSON_TYPE_STR != pValue->type) {
P6AI_UINT32(&args[1],(P6UINT32)pValue->type);
m_cpConsole->writeStdout( "-> ERROR: value14-1 - %1$ but got %2$\n",&args[0],2,NULL);
}
if (46 != pValue->jstring.length) {
P6AI_UINT32(&args[0],pValue->jstring.length);
m_cpConsole->writeStdout("-> ERROR: value14-2 - 46 but got %1$\n",&args[0],1,NULL);
}
err = m_cpStr->strncmp( "\"Now is \\\\ the time \\u00D8 for all \\fgood men\"", pValue->jstring.pStart, 46, &iResult );
if (0 != iResult) {
P6AI_INT32(&args[0],iResult);
m_cpConsole->writeStdout("-> Error: value - expected 0 but got %1$",&args[0],1,NULL);
}
if (!m_cpLoc) m_cpConsole->writeStdout("-> ERROR: value14-4 p6IJSONLocator not set\n",NULL,0,NULL);
length = 0;
jstring.pStart = pValue->jstring.pStart;
jstring.length = pValue->jstring.length;
err = m_cpLoc->convertToWideString( &jstring, NULL, &length );
if (eOk != err || 47 != length) {
P6AI_UINT32(&args[0],length);
m_cpConsole->writeStdout("-> ERROR: value14-5 - 47 but got %1$\n",&args[0],1,NULL);
}
length = 100;
err = m_cpLoc->convertToWideString( &jstring, wideString, &length );
P6AI_UINT32(&args[0],length);
P6AI_WCHARPTR(&args[0],&wideString[0]);
m_cpConsole->writeStdout("-> decocded string %1$ [%2$]\n",&args[0],2,NULL);
if (eOk != err) {
P6AI_ERR(&args[0],err);
m_cpConsole->writeStdout("-> ERROR: value14-6 - eOk but got %1$\n",&args[0],1,NULL);
}
if (39 != length) {
P6AI_UINT32(&args[0],length);
m_cpConsole->writeStdout("-> ERROR: value14-7 - 39 but got %1$\n",&args[0],1,NULL);
}
if (12 != (P6UINT32)wideString[29]) {
P6AI_UINT32(&args[0],(P6UINT32)wideString[29]);
m_cpConsole->writeStdout("-> ERROR: value14-8 - 12 but got %1$\n",&args[0],1,NULL);
}
if (216 != (P6UINT32)wideString[19]) {
P6AI_UINT32(&args[0],(P6UINT32)wideString[19]);
m_cpConsole->writeStdout("-> ERROR: value14-9 - 216 but got %1$d\n",&args[0],1,NULL);
}
m_value++;
break;
default:
P6AI_UINT32(&args[0],m_startPair);
m_cpConsole->writeStdout("Error: value() startPair out of range got [ %1$ ]\n",&args[0],1,NULL);
break;
}
return eOk;
}
} // namespace