merge the formfield patch from ooo-build
[ooovba.git] / writerfilter / qa / cppunittests / odiapi / FileLoggerImpl.hxx
blob7d0126a9958d34b4204ffd28c9559f817722ca71
1 /* Copyright 2005 Sun Microsystems, Inc. */
3 #ifndef INCLUDED_FILELOGGERIMPL_HXX
4 #define INCLUDED_FILELOGGERIMPL_HXX
6 #include <odiapi/props/Logger.hxx>
7 #include <fstream>
8 #include <stack>
10 namespace util {
12 /** A file logger
14 class FileLoggerImpl : public util::Logger
16 public:
17 FileLoggerImpl(const std::string& fileName);
19 virtual void beginTree();
20 virtual void endTree();
22 virtual void beginNode(const std::string& nodeId, const std::string& value, const std::string& refersToNodeId, bool inUse);
23 virtual void endNode(const std::string& nodeId);
25 private:
26 std::ofstream file_;
27 std::stack<std::string> nodeStack_;
30 } // namespace util
32 #endif // INCLUDED_LOGGER_HXX