Skip to content

Class jac::KeyValueNamespace

ClassList > jac > KeyValueNamespace

Public Types

Type Name
enum uint8_t DataType

Public Functions

Type Name
KeyValueNamespace ()
virtual bool commit () = 0
virtual bool erase (const std::string & name) = 0
bool exists (const std::string & name)
virtual float getFloat (const std::string & name, float def_value=0.f) = 0
virtual int64_t getInt (const std::string & name, int64_t def_value=0) = 0
virtual std::string getString (const std::string & name, std::string def_value="") = 0
virtual DataType getType (const std::string & name) = 0
virtual void setFloat (const std::string & name, float value) = 0
virtual void setInt (const std::string & name, int64_t value) = 0
virtual void setString (const std::string & name, const std::string & value) = 0
virtual ~KeyValueNamespace ()

Public Types Documentation

enum DataType

enum jac::KeyValueNamespace::DataType {
    INT64 = 0,
    FLOAT32 = 1,
    STRING = 2,
    NOT_FOUND = 0xFF
};

Public Functions Documentation

function KeyValueNamespace [2/2]

inline jac::KeyValueNamespace::KeyValueNamespace () 

function commit

virtual bool jac::KeyValueNamespace::commit () = 0

function erase

virtual bool jac::KeyValueNamespace::erase (
    const std::string & name
) = 0

function exists

inline bool jac::KeyValueNamespace::exists (
    const std::string & name
) 

function getFloat

virtual float jac::KeyValueNamespace::getFloat (
    const std::string & name,
    float def_value=0.f
) = 0

function getInt

virtual int64_t jac::KeyValueNamespace::getInt (
    const std::string & name,
    int64_t def_value=0
) = 0

function getString

virtual std::string jac::KeyValueNamespace::getString (
    const std::string & name,
    std::string def_value=""
) = 0

function getType

virtual DataType jac::KeyValueNamespace::getType (
    const std::string & name
) = 0

function setFloat

virtual void jac::KeyValueNamespace::setFloat (
    const std::string & name,
    float value
) = 0

function setInt

virtual void jac::KeyValueNamespace::setInt (
    const std::string & name,
    int64_t value
) = 0

function setString

virtual void jac::KeyValueNamespace::setString (
    const std::string & name,
    const std::string & value
) = 0

function ~KeyValueNamespace

inline virtual jac::KeyValueNamespace::~KeyValueNamespace () 


The documentation for this class was generated from the following file src/jac/device/keyvalue.h