LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
HandlerStreamBuf.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 * Copyright (C) 2004-2012 by CEA LIST *
8 * *
9 ***************************************************************************/
10#ifndef LIMA_LINGUISTICPROCESSINGHANDLERSTREAMBUF_H
11#define LIMA_LINGUISTICPROCESSINGHANDLERSTREAMBUF_H
12
13#include <iostream>
15#include "common/LimaCommon.h"
16
17namespace Lima{
18
22class LIMA_MEDIAPROCESSORS_EXPORT HandlerStreamBuf : public std::streambuf
23{
24public:
26
27 virtual ~HandlerStreamBuf();
28
29protected:
30 int overflow(int c) override;
31 int sync() override;
32
33 void flushBuffer();
34
35private:
36 AbstractAnalysisHandler* m_handler;
37 char* m_pbuf;
38
39};
40
41}
42
43
44#endif
#define LIMA_MEDIAPROCESSORS_EXPORT
Definition LimaCommon.h:131
The AbstractAnalysisHandler class defines the callback interface: the functions that are to be define...
NAUTITIA.