mcx::parameter_server::FileSerialization

mcx::parameter_server::FileSerialization

Inherited by mcx::parameter_server::FileSerializationJson, mcx::parameter_server::FileSerializationXml

Public Types

Name
enum class ExceptionListType { NO_EXCEPTIONS = 0, REGARD_ALL_EXCEPT = 1, IGNORE_ALL_EXCEPT = 2}
using const std::vector< Parameter * > & ExceptionList
using std::pair< ExceptionListType, ExceptionList > ExceptionPair

Public Functions

Name
virtual std::future< bool > save(const std::string & file_name, Parameter * root, size_t max_number_of_trials, size_t delay_us, bool force_update) =0
virtual std::future< bool > load(const std::string & file_name, Parameter * root, cmd_line::SystemMode system_mode, bool is_relative) =0
virtual ~FileSerialization() =default
size_t decodeValues(Parameter * param, const char * str_cursor, size_t str_len, char * decode_buf, size_t decode_buf_size)

Public Types Documentation

enum ExceptionListType

Enumerator Value Description
NO_EXCEPTIONS 0
REGARD_ALL_EXCEPT 1
IGNORE_ALL_EXCEPT 2

using ExceptionList

using mcx::parameter_server::FileSerialization::ExceptionList =  const std::vector<Parameter*>&;

using ExceptionPair

using mcx::parameter_server::FileSerialization::ExceptionPair =  std::pair<ExceptionListType, ExceptionList>;

Public Functions Documentation

function save

virtual std::future< bool > save(
    const std::string & file_name,
    Parameter * root,
    size_t max_number_of_trials,
    size_t delay_us,
    bool force_update
) =0

Reimplemented by: mcx::parameter_server::FileSerializationJson::save, mcx::parameter_server::FileSerializationXml::save

function load

virtual std::future< bool > load(
    const std::string & file_name,
    Parameter * root,
    cmd_line::SystemMode system_mode,
    bool is_relative
) =0

Reimplemented by: mcx::parameter_server::FileSerializationJson::load, mcx::parameter_server::FileSerializationXml::load

function ~FileSerialization

virtual ~FileSerialization() =default

function decodeValues

static size_t decodeValues(
    Parameter * param,
    const char * str_cursor,
    size_t str_len,
    char * decode_buf,
    size_t decode_buf_size
)

Updated on 2022-04-05 at 16:21:27 +0200