info.hh (8229:78bf55f23338) info.hh (8243:63e849f0f341)
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;

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

64struct StorageParams;
65struct Visit;
66
67class Info
68{
69 public:
70 /** The name of the stat. */
71 std::string name;
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;

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

64struct StorageParams;
65struct Visit;
66
67class Info
68{
69 public:
70 /** The name of the stat. */
71 std::string name;
72 /** The separator string used for vectors, dist, etc. */
73 static std::string separatorString;
72 /** The description of the stat. */
73 std::string desc;
74 /** The formatting flags. */
75 Flags flags;
76 /** The display precision. */
77 int precision;
78 /** A pointer to a prerequisite Stat. */
79 const Info *prereq;

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

88 const StorageParams *storageParams;
89
90 public:
91 Info();
92 virtual ~Info();
93
94 /** Set the name of this statistic */
95 void setName(const std::string &name);
74 /** The description of the stat. */
75 std::string desc;
76 /** The formatting flags. */
77 Flags flags;
78 /** The display precision. */
79 int precision;
80 /** A pointer to a prerequisite Stat. */
81 const Info *prereq;

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

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

--- 134 unchanged lines hidden ---
99
100 /**
101 * Check that this stat has been set up properly and is ready for
102 * use
103 * @return true for success
104 */
105 virtual bool check() const = 0;
106 bool baseCheck() const;

--- 134 unchanged lines hidden ---