diff options
Diffstat (limited to 'tools/gator/daemon/ExternalDriver.h')
-rw-r--r-- | tools/gator/daemon/ExternalDriver.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tools/gator/daemon/ExternalDriver.h b/tools/gator/daemon/ExternalDriver.h new file mode 100644 index 000000000000..d88f9e125f9c --- /dev/null +++ b/tools/gator/daemon/ExternalDriver.h @@ -0,0 +1,41 @@ +/** + * Copyright (C) ARM Limited 2010-2015. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#ifndef EXTERNALDRIVER_H +#define EXTERNALDRIVER_H + +#include "Driver.h" + +class ExternalDriver : public SimpleDriver { +public: + ExternalDriver(); + + bool claimCounter(const Counter &counter) const; + void resetCounters(); + void setupCounter(Counter &counter); + + void start(); + + void disconnect(); + +private: + typedef SimpleDriver super; + + bool connect() const; + void query() const; + + mutable int mUds; + mutable bool mQueried; + bool mStarted; + + // Intentionally unimplemented + ExternalDriver(const ExternalDriver &); + ExternalDriver &operator=(const ExternalDriver &); +}; + +#endif // EXTERNALDRIVER_H |