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
"
23
#include "
common/Handler/AbstractAnalysisHandler.h
"
24
#include "
common/LimaCommon.h
"
25
26
#include <iostream>
27
28
namespace
Lima
{
29
30
class
LIMA_MEDIAPROCESSORS_EXPORT
DumperStream
31
{
32
public
:
33
DumperStream
(
AbstractAnalysisHandler
* handler);
34
DumperStream
(
const
std::string& filename,
bool
append=
false
);
35
36
~DumperStream
();
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
AbstractAnalysisHandler.h
HandlerStreamBuf.h
LimaCommon.h
LIMA_MEDIAPROCESSORS_EXPORT
#define LIMA_MEDIAPROCESSORS_EXPORT
Definition
LimaCommon.h:131
Lima::AbstractAnalysisHandler
The AbstractAnalysisHandler class defines the callback interface: the functions that are to be define...
Definition
AbstractAnalysisHandler.h:23
Lima::DumperStream
Definition
DumperStream.h:31
Lima::DumperStream::out
std::ostream & out()
Definition
DumperStream.h:38
Lima::HandlerStreamBuf
Definition
HandlerStreamBuf.h:23
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
lima_common
src
common
MediaProcessors
DumperStream.h
Generated by
1.9.8