Changeset 222 for 06/libkombilo/sgfparser.h
- Timestamp:
- 02/21/07 22:31:44 (1 year ago)
- Files:
-
- 06/libkombilo/sgfparser.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
06/libkombilo/sgfparser.h
r195 r222 59 59 char* SGFescape(const char* s); 60 60 61 class PropValue { 62 public: 63 PropValue(std::string IDC, std::vector<std::string>* PV); 64 ~PropValue(); 65 std::string IDcomplete; 66 std::vector<std::string>* pv; 67 }; 68 61 69 class Node { 62 70 public: … … 71 79 std::vector<std::string> gpv(const std::string& prop); 72 80 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);81 void set_property_value(std::string& IDcomplete, std::vector<std::string>* propValue) throw(SGFError); 74 82 75 83 int posyD; // used when displaying SGF structure graphically as a tree … … 81 89 static int sloppy; 82 90 private: 83 std::map<std::string, std::vector<std::string>*> data; // use get_property_value to access this91 std::map<std::string, PropValue> data; // use get_property_value to access this 84 92 }; 85 93 … … 120 128 }; 121 129 122 std::string nodeToString(std::map<std::string, std::vector<std::string>*>& data) throw(SGFError);130 std::string nodeToString(std::map<std::string, PropValue >& data) throw(SGFError); 123 131 // char* rootNodeToString(PyObject* data); 124 132
