Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/info.h')
-rw-r--r--src/core/info.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/core/info.h b/src/core/info.h
index b3fa58f..b8154d7 100644
--- a/src/core/info.h
+++ b/src/core/info.h
@@ -25,6 +25,9 @@ namespace core
class InfoType : public Label
{
public:
+ /// info registry type definition
+ typedef std::vector<InfoType*> Registry;
+
/**
* @brief create a new information card category
* The constructor automaticly adds the instance to the registry
@@ -40,11 +43,15 @@ public:
/// search the infotype registry for a label
static InfoType *find(const std::string & label);
+
+ inline static const Registry &registry() {
+ return infotype_registry;
+ }
+ /// list the infotypes
+ static void list();
+
private:
- /// info registry type definition
- typedef std::vector<InfoType*> Registry;
-
static Registry infotype_registry;
}; // class InfoType