|
GPU-Accelerated Coverage
0.1.0
Compute coverage tours for known environment with articulated objects on GPU
|
Singleton class for storing configuration. More...
#include <Config.h>
Classes | |
| struct | AbstractParam |
| Abstract class representing a configuration parameter. More... | |
| struct | Param |
| Configuration parameter. More... | |
Public Types | |
| enum | PanoOutputValue { IMAGE_STRIP_HORIZONTAL, IMAGE_STRIP_VERTICAL, CUBE, EQUIRECTANGULAR, CYLINDRICAL } |
| Possible values for the panoOutputFormat parameter. More... | |
Public Member Functions | |
| void | save () const |
| Save the configuration to disk. | |
| void | load () |
| Load the configuration from disk. | |
| template<class T > | |
| T | getParam (const std::string &name) const |
| Get a configuration parameter. More... | |
Static Public Member Functions | |
| static Config & | getInstance () |
| static void | init (const int argc, const char *const argv[]) |
Protected Types | |
| typedef std::map< std::string, AbstractParam * > | Params |
| Parameter map type, maps names to parameter structure. | |
Protected Member Functions | |
| Config (const std::string &filename) | |
| Protected constructor, loads configuration from file. More... | |
| virtual | ~Config () |
| Destructor. | |
Protected Attributes | |
| const std::string | filename |
| The file name for loading and storing the configuration data. | |
| Params | params |
| The parameters. | |
Static Protected Attributes | |
| static Config * | instance |
| The singleton instance. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, AbstractParam ¶m) |
| std::istream & | operator>> (std::istream &is, AbstractParam ¶m) |
Singleton class for storing configuration.
Possible values for the panoOutputFormat parameter.
|
protected |
Protected constructor, loads configuration from file.
| [in] | filename | Name of the file for loading the configuration. |
|
inlinestatic |
|
inline |
Get a configuration parameter.
| [in] | name | The name of the configuration parameter. |
| std::invalid_argument | Parameter name is unknown or the parameter type mismatches the template parameter. |
If the configuration parameter has not been set, the method returns its default value.
|
static |
Create a Config instance and load the config data from a file.
| [in] | argc | Command line argument count. |
| [in] | argv | Command line arguments. |
1.8.11