UT_PerfMonJSONHandle Class Reference

#include <UT_PerfMonJSONHandle.h>

Inheritance diagram for UT_PerfMonJSONHandle:

UT_JSONHandle

List of all members.

Public Member Functions

 UT_PerfMonJSONHandle (const char *file_path, UT_PerfMonProfile *profile)
virtual ~UT_PerfMonJSONHandle ()
bool parseJSON (UT_StringArray &errors)
virtual bool jsonNull (UT_JSONParser &p)
 Inherited from UT_JSONHandle.
virtual bool jsonBool (UT_JSONParser &p, bool value)
 Event method to process a bool (true or false tokens).
virtual bool jsonInt (UT_JSONParser &p, int64 value)
 Event method to process an integer.
virtual bool jsonReal (UT_JSONParser &p, fpreal64 value)
 Event method to process a real/float.
virtual bool jsonString (UT_JSONParser &p, const char *value, int64 len)
 Event method to process a string value.
virtual bool jsonKey (UT_JSONParser &p, const char *v, int64 len)
 Event method to process the key of a map/object is read.
virtual bool jsonBeginMap (UT_JSONParser &p)
 Event method invoked at the start of a map/object.
virtual bool jsonEndMap (UT_JSONParser &p)
 Event method invoked at the end of a map/object.
virtual bool jsonBeginArray (UT_JSONParser &p)
 Event method invoked at the beginning of an array object.
virtual bool jsonEndArray (UT_JSONParser &p)
 Event method invoked at the end of an array object.


Detailed Description

Definition at line 34 of file UT_PerfMonJSONHandle.h.


Constructor & Destructor Documentation

UT_PerfMonJSONHandle::UT_PerfMonJSONHandle ( const char *  file_path,
UT_PerfMonProfile profile 
)

`profile` is an empty profile that will be populated at parse time by the JSON contents stored in the given file.

virtual UT_PerfMonJSONHandle::~UT_PerfMonJSONHandle (  )  [virtual]


Member Function Documentation

virtual bool UT_PerfMonJSONHandle::jsonBeginArray ( UT_JSONParser p  )  [virtual]

Event method invoked at the beginning of an array object.

Implements UT_JSONHandle.

virtual bool UT_PerfMonJSONHandle::jsonBeginMap ( UT_JSONParser p  )  [virtual]

Event method invoked at the start of a map/object.

Implements UT_JSONHandle.

virtual bool UT_PerfMonJSONHandle::jsonBool ( UT_JSONParser p,
bool  value 
) [virtual]

Event method to process a bool (true or false tokens).

Implements UT_JSONHandle.

virtual bool UT_PerfMonJSONHandle::jsonEndArray ( UT_JSONParser p  )  [virtual]

Event method invoked at the end of an array object.

Implements UT_JSONHandle.

virtual bool UT_PerfMonJSONHandle::jsonEndMap ( UT_JSONParser p  )  [virtual]

Event method invoked at the end of a map/object.

Implements UT_JSONHandle.

virtual bool UT_PerfMonJSONHandle::jsonInt ( UT_JSONParser p,
int64  value 
) [virtual]

Event method to process an integer.

Implements UT_JSONHandle.

virtual bool UT_PerfMonJSONHandle::jsonKey ( UT_JSONParser p,
const char *  v,
int64  len 
) [virtual]

Event method to process the key of a map/object is read.

Implements UT_JSONHandle.

virtual bool UT_PerfMonJSONHandle::jsonNull ( UT_JSONParser p  )  [virtual]

Inherited from UT_JSONHandle.

Implements UT_JSONHandle.

virtual bool UT_PerfMonJSONHandle::jsonReal ( UT_JSONParser p,
fpreal64  value 
) [virtual]

Event method to process a real/float.

Implements UT_JSONHandle.

virtual bool UT_PerfMonJSONHandle::jsonString ( UT_JSONParser p,
const char *  value,
int64  len 
) [virtual]

Event method to process a string value.

Implements UT_JSONHandle.

bool UT_PerfMonJSONHandle::parseJSON ( UT_StringArray errors  ) 

Parse the JSON file and populate the profile with the data stored in the file.


The documentation for this class was generated from the following file:

Generated on Thu Jan 31 00:33:29 2013 for HDK by  doxygen 1.5.9