Changeset 191 for 06/libkombilo/sgfparser.h
- Timestamp:
- 10/01/06 00:04:05 (2 years ago)
- Files:
-
- 06/libkombilo/sgfparser.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
06/libkombilo/sgfparser.h
r188 r191 30 30 #include <stack> 31 31 #include <map> 32 using namespace std;33 32 34 typedef pair<char,char> p_cc;33 typedef std::pair<char,char> p_cc; 35 34 36 35 class SGFError { … … 68 67 int numChildren; 69 68 int level; 70 st ring SGFstring;69 std::string SGFstring; 71 70 int parsed; 72 vector<string> gpv(conststring& prop);73 vector<string>* get_property_value(conststring& prop);74 void set_property_value(st ring& ID, vector<string>* propValue) throw(SGFError);71 std::vector<std::string> gpv(const std::string& prop); 72 std::vector<std::string>* get_property_value(const std::string& prop); 73 void set_property_value(std::string& ID, std::vector<std::string>* propValue) throw(SGFError); 75 74 76 75 int posyD; // used when displaying SGF structure graphically as a tree … … 82 81 static int sloppy; 83 82 private: 84 map<string, vector<string>* > data; // use get_property_value to access this83 std::map<std::string, std::vector<std::string>* > data; // use get_property_value to access this 85 84 }; 86 85 … … 139 138 }; 140 139 141 st ring nodeToString(map<string, vector<string>* >& data) throw(SGFError);140 std::string nodeToString(std::map<std::string, std::vector<std::string>* >& data) throw(SGFError); 142 141 // char* rootNodeToString(PyObject* data); 143 142
