knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
knowrob.h
Go to the documentation of this file.
1 /*
2  * This file is part of KnowRob, please consult
3  * https://github.com/knowrob/knowrob for license details.
4  */
5 
6 #ifndef KNOWROB_H_
7 #define KNOWROB_H_
8 
9 #include <cstdlib>
10 #include <sstream>
11 #include <string>
12 #include "knowrob/terms/IRIAtom.h"
13 
14 namespace knowrob {
23  void InitKnowRob(int argc, char **argv, bool initPython = true);
24 
33  void ShutdownKnowRob();
34 
38  char *getNameOfExecutable();
39 
45  void hashCombine(std::size_t &seed, const std::size_t &v);
46 
51  void insertUnique(std::ostream &os);
52 
53  namespace py {
58  }
59 
63  class GlobalSettings {
64  public:
68  static uint32_t batchSize() { return batchSize_; }
69 
74  static void setBatchSize(uint32_t batchSize) { batchSize_ = batchSize; }
75 
79  static IRIAtomPtr egoIRI() { return egoIRI_; }
80 
85  static void setEgoIRI(const IRIAtomPtr &egoIRI) { egoIRI_ = egoIRI; }
86 
87  protected:
88  static uint32_t batchSize_;
89  static IRIAtomPtr egoIRI_;
90  };
91 }
92 
93 #endif //KNOWROB_H_
static uint32_t batchSize_
Definition: knowrob.h:88
static IRIAtomPtr egoIRI_
Definition: knowrob.h:89
static IRIAtomPtr egoIRI()
Definition: knowrob.h:79
static void setEgoIRI(const IRIAtomPtr &egoIRI)
Definition: knowrob.h:85
static void setBatchSize(uint32_t batchSize)
Definition: knowrob.h:74
static uint32_t batchSize()
Definition: knowrob.h:68
void staticKnowRobModuleInit()
Definition: knowrob.cpp:134
void hashCombine(std::size_t &seed, const std::size_t &v)
Definition: knowrob.cpp:39
void InitKnowRob(int argc, char **argv, bool initPython=true)
Definition: knowrob.cpp:96
char * getNameOfExecutable()
Definition: knowrob.cpp:30
std::shared_ptr< IRIAtom > IRIAtomPtr
Definition: IRIAtom.h:57
void insertUnique(std::ostream &os)
Definition: knowrob.cpp:44
void ShutdownKnowRob()
Definition: knowrob.cpp:123