knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
Index.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_MONGO_INDEX_H
7 #define KNOWROB_MONGO_INDEX_H
8 
9 namespace knowrob::mongo {
13  enum class IndexType {
14  ASCENDING = 1,
15  DESCENDING = -1,
16  };
17 
21  struct IndexKey {
22  explicit IndexKey(const char *key, IndexType type = IndexType::ASCENDING)
23  : value(key), type(type) {};
24  const std::string value;
25  const IndexType type;
26  };
27 }
28 
29 #endif //KNOWROB_MONGO_INDEX_H
TermRule & string()
Definition: terms.cpp:63
IndexKey(const char *key, IndexType type=IndexType::ASCENDING)
Definition: Index.h:22
const std::string value
Definition: Index.h:23
const IndexType type
Definition: Index.h:25