Aktualizr
C++ SOTA Client
|
The BasedPath class Can represent an absolute or relative path, only readable through the BasePath::get() method. More...
#include <types.h>
Public Member Functions | |
BasedPath (boost::filesystem::path p) | |
boost::filesystem::path | get (const boost::filesystem::path &base) const |
bool | empty () const |
bool | operator== (const BasedPath &b) const |
bool | operator!= (const BasedPath &b) const |
The BasedPath class Can represent an absolute or relative path, only readable through the BasePath::get() method.
The intent is to avoid unintentional use of the "naked" relative path by mandating a base directory for each instantiation.
TODO has to be moved into Utils namespace