Veethree D7 SDK
Loading...
Searching...
No Matches
vsdk::sys::libuboot_raii Class Referencefinal

Detailed Description

an implementation of libuboot_raii_interface that interacts with a real uboot environment

#include <libuboot_raii.h>

Public Member Functions

void set_value (std::string_view var, std::string_view value) override
 Set a uboot environment variable.
void get_value (std::string_view var, std::string &value) override
 Get the value of a uboot environment variable.
void get_vars (std::unordered_map< std::string, std::string > &environment) override
 Populate a map with the current uboot environment variables.
 libuboot_raii (const libuboot_raii &)=delete
 libuboot_raii (libuboot_raii &&)=delete
libuboot_raii & operator= (const libuboot_raii &)=delete
libuboot_raii & operator= (libuboot_raii &&)=delete
Public Member Functions inherited from libuboot_raii_interface
 libuboot_raii_interface (const libuboot_raii_interface &)=delete
 libuboot_raii_interface (libuboot_raii_interface &&)=delete
libuboot_raii_interface & operator= (const libuboot_raii_interface &)=delete
libuboot_raii_interface & operator= (libuboot_raii_interface &&)=delete

Detailed Description

an implementation of libuboot_raii_interface that interacts with a real uboot environment

Constructor & Destructor Documentation

◆ libuboot_raii() [1/2]

vsdk::sys::libuboot_raii::libuboot_raii ( const libuboot_raii & )
delete

Deleted constructors

◆ libuboot_raii() [2/2]

vsdk::sys::libuboot_raii::libuboot_raii ( libuboot_raii && )
delete

Deleted constructors

Member Function Documentation

◆ get_value()

void vsdk::sys::libuboot_raii::get_value ( std::string_view var,
std::string & value )
overridevirtual

Get the value of a uboot environment variable.

Parameters
varName of the variable
value[out] String to store the value of the variable

Implements libuboot_raii_interface.

◆ get_vars()

void vsdk::sys::libuboot_raii::get_vars ( std::unordered_map< std::string, std::string > & environment)
overridevirtual

Populate a map with the current uboot environment variables.

Parameters
environmentMap to store the key=>value pairs

Implements libuboot_raii_interface.

◆ operator=() [1/2]

libuboot_raii & vsdk::sys::libuboot_raii::operator= ( const libuboot_raii & )
delete

Deleted constructors

◆ operator=() [2/2]

libuboot_raii & vsdk::sys::libuboot_raii::operator= ( libuboot_raii && )
delete

Deleted constructors

◆ set_value()

void vsdk::sys::libuboot_raii::set_value ( std::string_view var,
std::string_view value )
overridevirtual

Set a uboot environment variable.

Parameters
varName of the variable
valueValue to set the variable

Implements libuboot_raii_interface.


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