Veethree D7 SDK
Loading...
Searching...
No Matches
libuboot_raii_interface Class Referenceabstract

Detailed Description

an interface to wrap uboot environment operations. This allows for mock implementations to be create for host builds or during testing

#include <libuboot_raii_interface.h>

Public Member Functions

virtual void set_value (std::string_view var, std::string_view value)=0
 Set a uboot environment variable.
virtual void get_value (std::string_view var, std::string &value)=0
 Get the value of a uboot environment variable.
virtual void get_vars (std::unordered_map< std::string, std::string > &map)=0
 Populate a map with the current uboot environment variables.
 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 interface to wrap uboot environment operations. This allows for mock implementations to be create for host builds or during testing

Constructor & Destructor Documentation

◆ libuboot_raii_interface() [1/2]

libuboot_raii_interface::libuboot_raii_interface ( const libuboot_raii_interface & )
delete

Deleted constructors

◆ libuboot_raii_interface() [2/2]

libuboot_raii_interface::libuboot_raii_interface ( libuboot_raii_interface && )
delete

Deleted constructors

Member Function Documentation

◆ get_value()

virtual void libuboot_raii_interface::get_value ( std::string_view var,
std::string & value )
pure virtual

Get the value of a uboot environment variable.

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

Implemented in vsdk::sys::libuboot_raii.

◆ get_vars()

virtual void libuboot_raii_interface::get_vars ( std::unordered_map< std::string, std::string > & map)
pure virtual

Populate a map with the current uboot environment variables.

Parameters
mapMap to store the key=>value pairs

Implemented in vsdk::sys::libuboot_raii.

◆ operator=() [1/2]

libuboot_raii_interface & libuboot_raii_interface::operator= ( const libuboot_raii_interface & )
delete

Deleted constructors

◆ operator=() [2/2]

libuboot_raii_interface & libuboot_raii_interface::operator= ( libuboot_raii_interface && )
delete

Deleted constructors

◆ set_value()

virtual void libuboot_raii_interface::set_value ( std::string_view var,
std::string_view value )
pure virtual

Set a uboot environment variable.

Parameters
varName of the variable
valueValue to set the variable

Implemented in vsdk::sys::libuboot_raii.


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