2 * Copyright (C) ARM Limited 2013-2014. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
18 static const size_t MAX_STRING_LEN = 80;
19 static const size_t MAX_DESCRIPTION_LEN = 400;
35 void setType(const char *const type) { strncpy(mType, type, sizeof(mType)); mType[sizeof(mType) - 1] = '\0'; }
36 void setEnabled(const bool enabled) { mEnabled = enabled; }
37 void setEvent(const int event) { mEvent = event; }
38 void setCount(const int count) { mCount = count; }
39 void setCores(const int cores) { mCores = cores; }
40 void setKey(const int key) { mKey = key; }
41 void setDriver(Driver *const driver) { mDriver = driver; }
43 const char *getType() const { return mType;}
44 bool isEnabled() const { return mEnabled; }
45 int getEvent() const { return mEvent; }
46 int getCount() const { return mCount; }
47 int getCores() const { return mCores; }
48 int getKey() const { return mKey; }
49 Driver *getDriver() const { return mDriver; }
52 // Intentionally unimplemented
53 Counter(const Counter &);
54 Counter & operator=(const Counter &);
56 char mType[MAX_STRING_LEN];