[go: up one dir, main page]

Menu

[r189]: / tags / 0.9 / porg / logger.h  Maximize  Restore  History

Download this file

43 lines (30 with data), 912 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//=======================================================================
// logger.h
//-----------------------------------------------------------------------
// This file is part of the package porg
// Copyright (C) 2015 David Ricart
// For more information visit http://porg.sourceforge.net
//=======================================================================
#ifndef PORG_LOG_H
#define PORG_LOG_H
#include "config.h"
#include <iosfwd>
#include <set>
namespace Porg {
class Logger
{
public:
static void run();
protected:
std::string const m_pkgname;
std::set<std::string> m_files;
Logger();
void read_files_from_command();
void exec_command(std::string const&) const;
void read_files_from_stream(std::istream&);
void write_files_to_pkg() const;
void write_files_to_stream(std::ostream&) const;
void filter_files();
}; // class Logger
} // namespace Porg
#endif // PORG_LOG_H