#ifndef UTIL_H #define UTIL_H #include namespace xml { const int null = 0; #define DECLARE_COPY_METHODS(ClassName) \ ClassName(const ClassName& other); \ const ClassName& operator=(const ClassName& other); class Util { public: /// Print count tabulator chars ('\t') to out static std::ostream& tabs(std::ostream& out, int count, const std::string& tab = " "); /// Returns the next token in file. A token is a string separated /// by blanks or XML markup delimiters: <,>,/> static std::string nextToken(std::istream& in); private: /// Private constructor: this is a utility class only Util(); }; } #endif // UTIL_H