some improvements i think
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define TIER2_JSON_H
|
||||
|
||||
#include "tier0/platform.h"
|
||||
#include "tier1/utlstring.h"
|
||||
|
||||
class IJSONObject;
|
||||
class IJSONArray;
|
||||
@@ -27,9 +28,9 @@ abstract_class IJSONArray
|
||||
{
|
||||
public:
|
||||
virtual uint32_t GetCount() = 0;
|
||||
virtual IJSONObject *GetParameter( uint32_t i ) = 0;
|
||||
virtual IJSONValue *GetParameter( uint32_t i ) = 0;
|
||||
|
||||
virtual void SetArray( uint32_t uCount, IJSONValue *pValue ) = 0;
|
||||
virtual void SetArray( uint32_t uCount, IJSONValue **ppValues ) = 0;
|
||||
|
||||
virtual void CopyTo( IJSONArray *pObject ) = 0;
|
||||
virtual void Free() = 0;
|
||||
@@ -77,7 +78,8 @@ public:
|
||||
virtual IJSONValue *CreateValue( ) = 0;
|
||||
virtual void FreeValue( IJSONValue *pValue ) = 0;
|
||||
|
||||
virtual IJSONObject *ReadString( const char *szString ) = 0;
|
||||
virtual IJSONValue *ReadString( const char *szString ) = 0;
|
||||
virtual CUtlString WriteString( IJSONValue *pValue ) = 0;
|
||||
};
|
||||
|
||||
IJSONManager *JSONManager();
|
||||
|
||||
Reference in New Issue
Block a user