webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
WebCore::KeyedDecoder Class Referenceabstract

#include <KeyedCoding.h>

Inheritance diagram for WebCore::KeyedDecoder:
WebCore::KeyedDecoderCF WebCore::KeyedDecoderCF WebCore::KeyedDecoderGlib

Public Member Functions

virtual ~KeyedDecoder ()
 
virtual bool decodeBytes (const String &key, const uint8_t *&, size_t &)=0
 
virtual bool decodeBool (const String &key, bool &)=0
 
virtual bool decodeUInt32 (const String &key, uint32_t &)=0
 
virtual bool decodeInt32 (const String &key, int32_t &)=0
 
virtual bool decodeInt64 (const String &key, int64_t &)=0
 
virtual bool decodeFloat (const String &key, float &)=0
 
virtual bool decodeDouble (const String &key, double &)=0
 
virtual bool decodeString (const String &key, String &)=0
 
template<typename T >
bool decodeBytes (const String &key, Vector< T > &vector)
 
template<typename T , typename F >
bool decodeEnum (const String &key, T &value, F &&isValidEnumFunction)
 
template<typename T , typename F >
bool decodeObject (const String &key, T &object, F &&function)
 
template<typename T , typename F >
bool decodeConditionalObject (const String &key, T &object, F &&function)
 
template<typename T , typename F >
bool decodeObjects (const String &key, Vector< T > &objects, F &&function)
 
virtual ~KeyedDecoder ()
 
virtual bool decodeBytes (const String &key, const uint8_t *&, size_t &)=0
 
virtual bool decodeBool (const String &key, bool &)=0
 
virtual bool decodeUInt32 (const String &key, uint32_t &)=0
 
virtual bool decodeInt32 (const String &key, int32_t &)=0
 
virtual bool decodeInt64 (const String &key, int64_t &)=0
 
virtual bool decodeFloat (const String &key, float &)=0
 
virtual bool decodeDouble (const String &key, double &)=0
 
virtual bool decodeString (const String &key, String &)=0
 
template<typename T >
bool decodeBytes (const String &key, Vector< T > &vector)
 
template<typename T , typename F >
bool decodeEnum (const String &key, T &value, F &&isValidEnumFunction)
 
template<typename T , typename F >
bool decodeObject (const String &key, T &object, F &&function)
 
template<typename T , typename F >
bool decodeConditionalObject (const String &key, T &object, F &&function)
 
template<typename T , typename F >
bool decodeObjects (const String &key, Vector< T > &objects, F &&function)
 

Static Public Member Functions

static WEBCORE_EXPORT std::unique_ptr< KeyedDecoderdecoder (const uint8_t *data, size_t)
 
static WEBCORE_EXPORT std::unique_ptr< KeyedDecoderdecoder (const uint8_t *data, size_t)
 

Protected Member Functions

 KeyedDecoder ()
 
 KeyedDecoder ()
 

Constructor & Destructor Documentation

◆ ~KeyedDecoder() [1/2]

virtual WebCore::KeyedDecoder::~KeyedDecoder ( )
inlinevirtual

◆ KeyedDecoder() [1/2]

WebCore::KeyedDecoder::KeyedDecoder ( )
inlineprotected

◆ ~KeyedDecoder() [2/2]

virtual WebCore::KeyedDecoder::~KeyedDecoder ( )
inlinevirtual

◆ KeyedDecoder() [2/2]

WebCore::KeyedDecoder::KeyedDecoder ( )
inlineprotected

Member Function Documentation

◆ decodeBool() [1/2]

virtual bool WebCore::KeyedDecoder::decodeBool ( const String key,
bool &   
)
pure virtual

◆ decodeBool() [2/2]

virtual bool WebCore::KeyedDecoder::decodeBool ( const String key,
bool &   
)
pure virtual

◆ decodeBytes() [1/4]

virtual bool WebCore::KeyedDecoder::decodeBytes ( const String key,
const uint8_t *&  ,
size_t  
)
pure virtual

◆ decodeBytes() [2/4]

virtual bool WebCore::KeyedDecoder::decodeBytes ( const String key,
const uint8_t *&  ,
size_t  
)
pure virtual

◆ decodeBytes() [3/4]

template<typename T >
bool WebCore::KeyedDecoder::decodeBytes ( const String key,
Vector< T > &  vector 
)
inline

◆ decodeBytes() [4/4]

template<typename T >
bool WebCore::KeyedDecoder::decodeBytes ( const String key,
Vector< T > &  vector 
)
inline

◆ decodeConditionalObject() [1/2]

template<typename T , typename F >
bool WebCore::KeyedDecoder::decodeConditionalObject ( const String key,
T object,
F &&  function 
)
inline

◆ decodeConditionalObject() [2/2]

template<typename T , typename F >
bool WebCore::KeyedDecoder::decodeConditionalObject ( const String key,
T object,
F &&  function 
)
inline

◆ decodeDouble() [1/2]

virtual bool WebCore::KeyedDecoder::decodeDouble ( const String key,
double &   
)
pure virtual

◆ decodeDouble() [2/2]

virtual bool WebCore::KeyedDecoder::decodeDouble ( const String key,
double &   
)
pure virtual

◆ decodeEnum() [1/2]

template<typename T , typename F >
bool WebCore::KeyedDecoder::decodeEnum ( const String key,
T value,
F &&  isValidEnumFunction 
)
inline

◆ decodeEnum() [2/2]

template<typename T , typename F >
bool WebCore::KeyedDecoder::decodeEnum ( const String key,
T value,
F &&  isValidEnumFunction 
)
inline

◆ decodeFloat() [1/2]

virtual bool WebCore::KeyedDecoder::decodeFloat ( const String key,
float &   
)
pure virtual

◆ decodeFloat() [2/2]

virtual bool WebCore::KeyedDecoder::decodeFloat ( const String key,
float &   
)
pure virtual

◆ decodeInt32() [1/2]

virtual bool WebCore::KeyedDecoder::decodeInt32 ( const String key,
int32_t  
)
pure virtual

◆ decodeInt32() [2/2]

virtual bool WebCore::KeyedDecoder::decodeInt32 ( const String key,
int32_t  
)
pure virtual

◆ decodeInt64() [1/2]

virtual bool WebCore::KeyedDecoder::decodeInt64 ( const String key,
int64_t  
)
pure virtual

◆ decodeInt64() [2/2]

virtual bool WebCore::KeyedDecoder::decodeInt64 ( const String key,
int64_t  
)
pure virtual

◆ decodeObject() [1/2]

template<typename T , typename F >
bool WebCore::KeyedDecoder::decodeObject ( const String key,
T object,
F &&  function 
)
inline

◆ decodeObject() [2/2]

template<typename T , typename F >
bool WebCore::KeyedDecoder::decodeObject ( const String key,
T object,
F &&  function 
)
inline

◆ decodeObjects() [1/2]

template<typename T , typename F >
bool WebCore::KeyedDecoder::decodeObjects ( const String key,
Vector< T > &  objects,
F &&  function 
)
inline

◆ decodeObjects() [2/2]

template<typename T , typename F >
bool WebCore::KeyedDecoder::decodeObjects ( const String key,
Vector< T > &  objects,
F &&  function 
)
inline

◆ decoder() [1/2]

static WEBCORE_EXPORT std::unique_ptr<KeyedDecoder> WebCore::KeyedDecoder::decoder ( const uint8_t data,
size_t   
)
static

◆ decoder() [2/2]

std::unique_ptr< KeyedDecoder > WebCore::KeyedDecoder::decoder ( const uint8_t data,
size_t  size 
)
static

◆ decodeString() [1/2]

virtual bool WebCore::KeyedDecoder::decodeString ( const String key,
String  
)
pure virtual

◆ decodeString() [2/2]

virtual bool WebCore::KeyedDecoder::decodeString ( const String key,
String  
)
pure virtual

◆ decodeUInt32() [1/2]

virtual bool WebCore::KeyedDecoder::decodeUInt32 ( const String key,
uint32_t  
)
pure virtual

◆ decodeUInt32() [2/2]

virtual bool WebCore::KeyedDecoder::decodeUInt32 ( const String key,
uint32_t  
)
pure virtual

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