- /// \brief canonical Printer
- void Print(std::ostream &os = std::cout);
-
- /// Informations contained in the parser
+ bool Load( std::string const &filename );
+ bool Load( );
+ void Print(std::ostream &os = std::cout, std::string const &indent = "" );
+
+ /// Sets the root Directory name to parse, recursively
+ void SetDirectoryName(std::string const &dirName)
+ { ParseDir = true; if (Filename != dirName)
+ Filename = dirName, IsDocumentModified = true; };
+ /// Accessor to \ref Filename
+ virtual void SetFileName(std::string const &fileName)
+ { ParseDir = false; if (Filename != fileName)
+ Filename = fileName, IsDocumentModified = true; }
+
+ /// DEPRECATED : use SetDirectoryName
+ void SetParseDir(bool parseDir) { ParseDir = parseDir; };
+
+ // Informations contained in the parser