UnCoVer (Using Coverability for Verification)
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
MultiStream.h
1 /***************************************************************************
2  * Copyright (C) 2015 by Jan Stückrath <jan.stueckrath@uni-due.de> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License *
15  * along with this program; if not, write to the *
16  * Free Software Foundation, Inc., *
17  * 51 Franklin St, Fifth Floor, Boston, MA 02110, USA *
18  ***************************************************************************/
19 
20 #ifndef MULTISTREAM_H_
21 #define MULTISTREAM_H_
22 
23 #include <ostream>
24 #include "../basic_types/globals.h"
25 #include "MultiStreamBuffer.h"
26 
27 // TODO comment this class
28 
29 namespace uncover {
30  namespace logging {
31 
32  class MultiStream : public std::ostream {
33 
34  public:
35 
36  MultiStream();
37 
38  virtual ~MultiStream();
39 
40  void addOStream(shared_ptr<std::ostream> str);
41 
42  size_t removeOStream(shared_ptr<std::ostream> str);
43 
44  private:
45 
47 
48  vector<shared_ptr<std::ostream>> streams;
49  };
50 
51  } /* namespace logging */
52 } /* namespace uncover */
53 
54 #endif
Definition: MultiStreamBuffer.h:31
Definition: MultiStream.h:32