rippled
Reporting.h
1 //------------------------------------------------------------------------------
2 /*
3  This file is part of rippled: https://github.com/ripple/rippled
4  Copyright (c) 2012, 2013 Ripple Labs Inc.
5 
6  Permission to use, copy, modify, and/or distribute this software for any
7  purpose with or without fee is hereby granted, provided that the above
8  copyright notice and this permission notice appear in all copies.
9 
10  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18 //==============================================================================
19 
20 #ifndef RIPPLE_PEERFINDER_REPORTING_H_INCLUDED
21 #define RIPPLE_PEERFINDER_REPORTING_H_INCLUDED
22 
23 namespace ripple {
24 namespace PeerFinder {
25 
29 struct Reporting
30 {
31  explicit Reporting() = default;
32 
33  // Report simulation parameters
34  static bool const params = true;
35 
36  // Report simulation crawl time-evolution
37  static bool const crawl = true;
38 
39  // Report nodes aggregate statistics
40  static bool const nodes = true;
41 
42  // Report nodes detailed information
43  static bool const dump_nodes = false;
44 };
45 
46 } // namespace PeerFinder
47 } // namespace ripple
48 
49 #endif
ripple::PeerFinder::Reporting::crawl
static const bool crawl
Definition: Reporting.h:37
ripple::PeerFinder::Reporting::dump_nodes
static const bool dump_nodes
Definition: Reporting.h:43
ripple::PeerFinder::Reporting::nodes
static const bool nodes
Definition: Reporting.h:40
ripple::PeerFinder::Reporting::Reporting
Reporting()=default
ripple::PeerFinder::Reporting::params
static const bool params
Definition: Reporting.h:34
ripple::PeerFinder::Reporting
Severity levels for test reporting.
Definition: Reporting.h:29
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition: RCLCensorshipDetector.h:29