fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / writerfilter / qa / cppunittests / odiapi / FileLoggerImpl.hxx
bloba32e3679ade7f3063895fd68d1b7ce820b043e86
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_FILELOGGERIMPL_HXX
21 #define INCLUDED_FILELOGGERIMPL_HXX
23 #include <odiapi/props/Logger.hxx>
24 #include <fstream>
25 #include <stack>
27 namespace util {
29 /** A file logger
31 class FileLoggerImpl : public util::Logger
33 public:
34 FileLoggerImpl(const std::string& fileName);
36 virtual void beginTree();
37 virtual void endTree();
39 virtual void beginNode(const std::string& nodeId, const std::string& value, const std::string& refersToNodeId, bool inUse);
40 virtual void endNode(const std::string& nodeId);
42 private:
43 std::ofstream file_;
44 std::stack<std::string> nodeStack_;
47 } // namespace util
49 #endif // INCLUDED_LOGGER_HXX
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */