Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / tools / cephfs / EventOutput.h
1 // -*- mode:c++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- 
2 // vim: ts=8 sw=2 smarttab
3 /*
4  * ceph - scalable distributed file system
5  *
6  * copyright (c) 2014 john spray <john.spray@inktank.com>
7  *
8  * this is free software; you can redistribute it and/or
9  * modify it under the terms of the gnu lesser general public
10  * license version 2.1, as published by the free software
11  * foundation.  see file copying.
12  */
13
14
15 #ifndef EVENT_OUTPUT_H
16 #define EVENT_OUTPUT_H
17
18 #include <string>
19
20 class JournalScanner;
21
22 /**
23  * Different output formats for the results of a journal scan
24  */
25 class EventOutput
26 {
27   private:
28     JournalScanner const &scan;
29     std::string const path;
30
31   public:
32     EventOutput(JournalScanner const &scan_, std::string const &path_)
33       : scan(scan_), path(path_) {}
34
35     void summary() const;
36     void list() const;
37     int json() const;
38     int binary() const;
39 };
40
41 #endif // EVENT_OUTPUT_H
42