diff options
author | Jon Medhurst <tixy@linaro.org> | 2013-06-11 09:49:00 +0100 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2013-06-11 09:49:00 +0100 |
commit | 1b621a4c70954bba19f77922a177146dff21e6f1 (patch) | |
tree | 1c12c47025209a2551b502bc45ec09be4fe4246b /daemon/Counter.h | |
parent | b69d31aa944d1c6aea0f54399fb754127ad2ab18 (diff) |
gator: Version 5.15DS-5.15
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'daemon/Counter.h')
-rw-r--r-- | daemon/Counter.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/daemon/Counter.h b/daemon/Counter.h index 041020b..231a85d 100644 --- a/daemon/Counter.h +++ b/daemon/Counter.h @@ -24,52 +24,25 @@ public: void clear () { mType[0] = '\0'; - mTitle[0] = '\0'; - mName[0] = '\0'; - mDescription[0] = '\0'; - mDisplay[0] = '\0'; - mUnits[0] = '\0'; - mModifier = 1; mEnabled = false; mEvent = 0; mCount = 0; mKey = 0; - mPerCPU = false; - mEBSCapable = false; - mAverageSelection = false; mDriver = NULL; } void setType(const char *const type) { strncpy(mType, type, sizeof(mType)); mType[sizeof(mType) - 1] = '\0'; } - void setTitle(const char *const title) { strncpy(mTitle, title, sizeof(mTitle)); mTitle[sizeof(mTitle) - 1] = '\0'; } - void setName(const char *const name) { strncpy(mName, name, sizeof(mName)); mName[sizeof(mName) - 1] = '\0'; } - void setDescription(const char *const description) { strncpy(mDescription, description, sizeof(mDescription)); mDescription[sizeof(mDescription) - 1] = '\0'; } - void setDisplay(const char *const display) { strncpy(mDisplay, display, sizeof(mDisplay)); mDisplay[sizeof(mDisplay) - 1] = '\0'; } - void setUnits(const char *const units) { strncpy(mUnits, units, sizeof(mUnits)); mUnits[sizeof(mUnits) - 1] = '\0'; } - void setModifier(const int modifier) { mModifier = modifier; } void setEnabled(const bool enabled) { mEnabled = enabled; } void setEvent(const int event) { mEvent = event; } void setCount(const int count) { mCount = count; } void setKey(const int key) { mKey = key; } - void setPerCPU(const bool perCPU) { mPerCPU = perCPU; } - void setEBSCapable(const bool ebsCapable) { mEBSCapable = ebsCapable; } - void setAverageSelection(const bool averageSelection) { mAverageSelection = averageSelection; } void setDriver(Driver *const driver) { mDriver = driver; } const char *getType() const { return mType;} - const char *getTitle() const { return mTitle; } - const char *getName() const { return mName; } - const char *getDescription() const { return mDescription; } - const char *getDisplay() const { return mDisplay; } - const char *getUnits() const { return mUnits; } - int getModifier() const { return mModifier; } bool isEnabled() const { return mEnabled; } int getEvent() const { return mEvent; } int getCount() const { return mCount; } int getKey() const { return mKey; } - bool isPerCPU() const { return mPerCPU; } - bool isEBSCapable() const { return mEBSCapable; } - bool isAverageSelection() const { return mAverageSelection; } Driver *getDriver() const { return mDriver; } private: @@ -78,19 +51,10 @@ private: Counter & operator=(const Counter &); char mType[MAX_STRING_LEN]; - char mTitle[MAX_STRING_LEN]; - char mName[MAX_STRING_LEN]; - char mDescription[MAX_DESCRIPTION_LEN]; - char mDisplay[MAX_STRING_LEN]; - char mUnits[MAX_STRING_LEN]; - int mModifier; bool mEnabled; int mEvent; int mCount; int mKey; - bool mPerCPU; - bool mEBSCapable; - bool mAverageSelection; Driver *mDriver; }; |