TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
iJsonWriter Struct Referenceabstract
Inheritance diagram for iJsonWriter:
iUnknown

Detailed Description

Json writer interface.

Public Member Functions

virtual void Reset ()=0
 Reset the writer's content. More...
 
virtual tBool ArrayBegin ()=0
 Begin an array. More...
 
virtual tBool ArrayEnd ()=0
 Ends an array. More...
 
virtual tBool ObjectBegin ()=0
 Begin an object. More...
 
virtual tBool ObjectEnd ()=0
 Ends an object. More...
 
virtual tBool Name (const achar *aName)=0
 Append a key name. More...
 
virtual tBool ValueString (const achar *aStr)=0
 Append a string in the current array/object. More...
 
virtual tBool ValueNumber (const achar *aStr)=0
 Append an integer in the current array/object. More...
 
virtual tBool ValueBool (tBool abItem)=0
 Append a boolean in the current array/object. More...
 
virtual tBool ValueNull ()=0
 Append a null value in the current array/object. More...
 
virtual tBool ObjectString (const achar *aName, const achar *aStr)=0
 Write a string property in the current object. More...
 
virtual tBool ObjectNumber (const achar *aName, const achar *aStr)=0
 Write a number property in the current object. More...
 
virtual tBool ObjectBool (const achar *aName, tBool abValue)=0
 Write a boolean property in the current object. More...
 
virtual tBool ObjectNull (const achar *aName)=0
 Write a null property in the current object. More...
 
- Public Member Functions inherited from iUnknown
virtual tBool IsOK () const =0
 Check if the object is valid. More...
 
virtual tI32 AddRef ()=0
 Signal that one more reference of the object has been created. More...
 
virtual tI32 Release ()=0
 Release a reference of the object. More...
 
virtual void DeleteThis ()=0
 Bypass any reference counting and delete this object. More...
 
virtual void Invalidate ()=0
 Invalidate the object. More...
 
virtual iUnknownQueryInterface (const tUUID &aIID)=0
 Query an interface. More...
 
virtual void ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0
 Fill a UUID list containing the UUIDs of the implemented interfaces. More...
 
virtual tI32 SetNumRefs (tI32 anNumRefs)=0
 Set the reference counter directly. More...
 
virtual tI32 GetNumRefs () const =0
 Get the number of references to this object. More...
 

Member Function Documentation

virtual void Reset ( )
pure virtual

Reset the writer's content.

virtual tBool ArrayBegin ( )
pure virtual

Begin an array.

virtual tBool ArrayEnd ( )
pure virtual

Ends an array.

virtual tBool ObjectBegin ( )
pure virtual

Begin an object.

virtual tBool ObjectEnd ( )
pure virtual

Ends an object.

virtual tBool Name ( const achar aName)
pure virtual

Append a key name.

virtual tBool ValueString ( const achar aStr)
pure virtual

Append a string in the current array/object.

virtual tBool ValueNumber ( const achar aStr)
pure virtual

Append an integer in the current array/object.

virtual tBool ValueBool ( tBool  abItem)
pure virtual

Append a boolean in the current array/object.

virtual tBool ValueNull ( )
pure virtual

Append a null value in the current array/object.

virtual tBool ObjectString ( const achar aName,
const achar aStr 
)
pure virtual

Write a string property in the current object.

virtual tBool ObjectNumber ( const achar aName,
const achar aStr 
)
pure virtual

Write a number property in the current object.

virtual tBool ObjectBool ( const achar aName,
tBool  abValue 
)
pure virtual

Write a boolean property in the current object.

virtual tBool ObjectNull ( const achar aName)
pure virtual

Write a null property in the current object.