pmt: fix some minor typo issues and including problems etc. (more)
This commit is contained in:
@@ -38,6 +38,12 @@ struct _entry {
|
||||
} props;
|
||||
};
|
||||
|
||||
/**
|
||||
* basic_partition_map
|
||||
* -------------------
|
||||
* The main type of the library. The Builder class is designed
|
||||
* to be easily manipulated and modified only on this class.
|
||||
*/
|
||||
class basic_partition_map {
|
||||
private:
|
||||
void _resize_map();
|
||||
@@ -139,16 +145,14 @@ public:
|
||||
/**
|
||||
* Secondary constructor
|
||||
* ---------------------
|
||||
* It has two arguments:
|
||||
* It has one arguments:
|
||||
* - Directory path to search
|
||||
*/
|
||||
basic_partition_map_builder(const std::string_view path);
|
||||
|
||||
/**
|
||||
* getAll()
|
||||
* ------
|
||||
* WARNING: Learn about std::optional before using this function.
|
||||
*
|
||||
* --------
|
||||
* Returns the current list content in Map_t type.
|
||||
* If no list is created, returns std::nullopt.
|
||||
*/
|
||||
@@ -304,10 +308,17 @@ public:
|
||||
/**
|
||||
* ! operator
|
||||
* ----------
|
||||
* Returns true if the object creation failed (i.e., there's a problem),
|
||||
* and false if the object is correctly created.
|
||||
* Returns true if the object creation failed (i.e., there's a problem),
|
||||
* and false if the object is correctly created.
|
||||
*/
|
||||
bool operator!() const;
|
||||
bool operator!() const;
|
||||
|
||||
/**
|
||||
* () operator
|
||||
* -----------
|
||||
* Build map with input path. Implementation of readDirectory().
|
||||
*/
|
||||
bool operator()(const std::string_view path);
|
||||
};
|
||||
|
||||
using Error = Helper::Error;
|
||||
|
||||
@@ -211,10 +211,16 @@ bool basic_partition_map_builder::operator!() const
|
||||
return this->_any_generating_error;
|
||||
}
|
||||
|
||||
bool basic_partition_map_builder::operator()(const std::string_view path)
|
||||
{
|
||||
LOGN(MAP, INFO) << "calling readDirectory() for building map with " << path << std::endl;
|
||||
return readDirectory(path);
|
||||
}
|
||||
|
||||
std::string getLibVersion()
|
||||
{
|
||||
char vinfo[512];
|
||||
sprintf(vinfo, "libpartition_map %s [%s %s]\nBuildType: %s\nCMakeVersion: %s\nCompilerVersion: %s\nBuildFlags: %s\n", BUILD_VERSION, BUILD_DATE, BUILD_TIME, BUILD_TYPE, BUILD_CMAKE_VERSION, BUILD_COMPILER_VERSION, BUILD_FLAGS);
|
||||
sprintf(vinfo, MKVERSION("libpartition_map"));
|
||||
return std::string(vinfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user