KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Semantic_db.h
Go to the documentation of this file.
1 #ifndef SEMANTIC_DB_H_
2 #define SEMANTIC_DB_H_
3 
11 #include "semantics/Token_map.h"
12 
13 namespace semantics
14 {
15 
16 class Semantic_db : public Token_map
17 {
18 public:
21  static const Key_type& null_key();
22 
23  static const Key_type& unknown_entity();
24 public:
25  Semantic_db();
28  void initialize_from_file(std::string file);
31  const Key_type& unknown_key() {return unknown_entity();}
32 };
33 
34 };
35 
36 #endif
Semantic_db()
Definition: Semantic_db.cpp:28
void initialize_from_file(std::string file)
read in semantic features from a file, mapping them to codes
Definition: Semantic_db.cpp:34
const Key_type & unknown_key()
get the string associated with the special code for unknown value
Definition: Semantic_db.h:31
std::string Key_type
Definition: Token_map.h:23
Definition: Token_map.h:20
static const Key_type & null_key()
get the string associated with the special code for "null" value
Definition: Semantic_db.cpp:16
static const Key_type & unknown_entity()
Definition: Semantic_db.cpp:22
Definition: Semantic_db.h:16