info.hh (11565:9b9116df5e88) info.hh (14266:711b485a4bf8)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 22 unchanged lines hidden (view full) ---

31#ifndef __BASE_STATS_INFO_HH__
32#define __BASE_STATS_INFO_HH__
33
34#include "base/stats/types.hh"
35#include "base/flags.hh"
36
37namespace Stats {
38
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 22 unchanged lines hidden (view full) ---

31#ifndef __BASE_STATS_INFO_HH__
32#define __BASE_STATS_INFO_HH__
33
34#include "base/stats/types.hh"
35#include "base/flags.hh"
36
37namespace Stats {
38
39class Group;
40
39typedef uint16_t FlagsType;
40typedef ::Flags<FlagsType> Flags;
41
42/** Nothing extra to print. */
43const FlagsType none = 0x0000;
44/** This Stat is Initialized */
45const FlagsType init = 0x0001;
46/** Print this stat. */

--- 45 unchanged lines hidden (view full) ---

92 const StorageParams *storageParams;
93
94 public:
95 Info();
96 virtual ~Info();
97
98 /** Set the name of this statistic */
99 void setName(const std::string &name);
41typedef uint16_t FlagsType;
42typedef ::Flags<FlagsType> Flags;
43
44/** Nothing extra to print. */
45const FlagsType none = 0x0000;
46/** This Stat is Initialized */
47const FlagsType init = 0x0001;
48/** Print this stat. */

--- 45 unchanged lines hidden (view full) ---

94 const StorageParams *storageParams;
95
96 public:
97 Info();
98 virtual ~Info();
99
100 /** Set the name of this statistic */
101 void setName(const std::string &name);
102 void setName(const Group *parent, const std::string &name);
100 void setSeparator(std::string _sep) { separatorString = _sep;}
101
102 /**
103 * Check that this stat has been set up properly and is ready for
104 * use
105 * @return true for success
106 */
107 virtual bool check() const = 0;

--- 152 unchanged lines hidden ---
103 void setSeparator(std::string _sep) { separatorString = _sep;}
104
105 /**
106 * Check that this stat has been set up properly and is ready for
107 * use
108 * @return true for success
109 */
110 virtual bool check() const = 0;

--- 152 unchanged lines hidden ---