LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
DumperStream.h
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6/************************************************************************
7 *
8 * @file DumperStream.h
9 * @author Romaric Besancon (romaric.besancon@cea.fr)
10 * @date Fri Jan 21 2011
11 * copyright Copyright (C) 2011-2012 by CEA LIST
12 * Project MM
13 *
14 * @brief a class defining a stream to be used in dumper (abstract layer on top of handler or file)
15 *
16 *
17 ***********************************************************************/
18
19#ifndef DUMPERSTREAM_H
20#define DUMPERSTREAM_H
21
22#include "HandlerStreamBuf.h"
24#include "common/LimaCommon.h"
25
26#include <iostream>
27
28namespace Lima {
29
31{
32 public:
34 DumperStream(const std::string& filename, bool append=false);
35
37
38 std::ostream& out() { return *m_out; }
39
40 /*template<typename T> DumperStream& operator<<(const T& t) {
41 m_out << t;
42 return *this;
43 }*/
44
45 private:
46 bool m_useHandler;
47 AbstractAnalysisHandler* m_handler;
48 HandlerStreamBuf* m_buffer;
49 std::ostream* m_out;
50};
51
52} // end namespace
53
54#endif
#define LIMA_MEDIAPROCESSORS_EXPORT
Definition LimaCommon.h:131
The AbstractAnalysisHandler class defines the callback interface: the functions that are to be define...
std::ostream & out()
NAUTITIA.