LibPkg
|
Class to read the header details from a RISC OS Module. More...
#include <module_info.h>
Public Member Functions | |
module_info () | |
Construct an uninitialised module_info object Call the read method to initialise it. More... | |
module_info (const std::string &path) | |
Read module information from given path to module file. More... | |
bool | read (const std::string &path) |
Read module information from given path to module file. More... | |
bool | lookup (const std::string &title) |
Look up module in loaded module list. More... | |
bool | read_ok () const |
Check if module information has been update successfully. More... | |
const std::string & | title () |
Get the module title. More... | |
const std::string & | help_string () |
Get module help string. More... | |
std::string | version () const |
Get the module version. More... | |
Class to read the header details from a RISC OS Module.
|
inline |
Construct an uninitialised module_info object Call the read method to initialise it.
pkg::module_info::module_info | ( | const std::string & | path | ) |
bool pkg::module_info::read | ( | const std::string & | path | ) |
Read module information from given path to module file.
Sets the value returned by read_ok() method
path | full path to the module to read information from |
Referenced by module_info().
bool pkg::module_info::lookup | ( | const std::string & | title | ) |
Look up module in loaded module list.
module | title (Can use "." as a wild card) |
References pkg::os::call_swi(), and pkg::swi::OS_Module.
Referenced by pkg::module_check::module_check(), and module_info().
|
inline |
Check if module information has been update successfully.
Referenced by pkg::unpack::poll().
|
inline |
Get the module title.
Referenced by module_info(), and pkg::unpack::poll().
|
inline |
Get module help string.
Referenced by pkg::module_check::module_check(), and pkg::unpack::poll().
|
inline |
Get the module version.
Referenced by pkg::unpack::poll().
Reference Manual | LibPkg | Version 0.9.0 (4 Sep 2020) |