Changeset 192 for trunk/include
- Timestamp:
- Feb 19, 2006, 10:40:13 AM (19 years ago)
- Location:
- trunk/include/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/core/RpLibrary.h
r125 r192 35 35 36 36 RpLibrary* element (std::string path = ""); 37 RpLibrary* parent (std::string path = ""); 37 38 38 39 // should return RpObject& but for simplicity right now it doesnt … … 44 45 int* childCount = NULL ); 45 46 47 RpLibrary& copy ( std::string toPath, 48 std::string fromPath, 49 RpLibrary* fromObj = NULL); 50 46 51 std::string get ( std::string path = ""); 47 52 std::string getString ( std::string path = ""); … … 58 63 int append = 0 ); 59 64 65 RpLibrary& put ( std::string path, 66 RpLibrary* value, 67 std::string id = "", 68 int append = 0 ); 69 60 70 RpLibrary& remove (std::string path = ""); 61 71 … … 65 75 std::string nodeId(); 66 76 std::string nodeComp(); 77 std::string nodePath(); 67 78 68 79 void result(); … … 324 335 325 336 326 RpLibrary ( scew_element* node )337 RpLibrary ( scew_element* node, scew_tree* tree) 327 338 : parser (NULL), 328 tree ( NULL),339 tree (tree), 329 340 root (node) 330 341 331 {} 342 { 343 freeTree = 0; 344 } 332 345 333 346 … … 336 349 std::string _node2name (scew_element* node); 337 350 std::string _node2comp (scew_element* node); 351 std::string _node2path (scew_element* node); 352 338 353 int _splitPath (std::string& path, 339 354 std::string& tagName, -
trunk/include/core/scew_extras.h
r115 r192 7 7 * ====================================================================== 8 8 */ 9 #ifdef __cplusplus 9 #ifdef __cplusplus 10 10 extern "C" { 11 11 #endif 12 12 13 extern scew_element* 13 extern scew_element* 14 14 scew_element_parent(scew_element const* element); 15 15 … … 23 23 scew_element_list_all(scew_element const* parent, unsigned int* count); 24 24 25 #ifdef __cplusplus 25 extern int 26 scew_element_copy_attr(scew_element const* fromElement, scew_element* toElement); 27 28 extern scew_element* 29 scew_element_copy (scew_element* element); 30 31 #ifdef __cplusplus 26 32 } 27 33 #endif
Note: See TracChangeset
for help on using the changeset viewer.