diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-01-08 12:34:16 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-01-08 12:34:16 +0100 |
commit | 369685d0dc26523d57ac71a682f046db34ba6851 (patch) | |
tree | e5f50ebb431031e55bb005245f5933b7601617c4 /MuscleEMGProfile.h | |
parent | a2a6c67f9777c3b07535f0b401d7f6b4a122ceaa (diff) |
Remove unused code in controller (and related)
Diffstat (limited to 'MuscleEMGProfile.h')
-rw-r--r-- | MuscleEMGProfile.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/MuscleEMGProfile.h b/MuscleEMGProfile.h deleted file mode 100644 index 2783b26..0000000 --- a/MuscleEMGProfile.h +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef MUSCLE_EMG_PROFILE_H_ -#define MUSCLE_EMG_PROFILE_H_ - -#include <ostream> -#include <string> -#include <vector> - -class MuscleEMGProfile { -public: - MuscleEMGProfile(const std::string &name, unsigned capacity) - : _name(const_cast<std::string &>(name)) - { - if (capacity == 0) - capacity = 100; - _x.reserve(capacity); - _y.reserve(capacity); - } - - MuscleEMGProfile& operator=(const MuscleEMGProfile &m) - { - _name = m._name; - _x = m._x; - _y = m._y; - - return *this; - } - - unsigned getIdx() { return _x.size(); } - unsigned getCapacity() { return _x.capacity(); } - const std::string &getName() { return _name; } - - void addData(double x, double y); - -private: - std::string _name; - std::vector<double> _x; - std::vector<double> _y; - -// friend std::ostream& operator<<(std::ostream &s, const MuscleEMGProfile &m); -}; - -/* -std::ostream& operator<<(std::ostream &s, const MuscleEMGProfile &m) -{ - return s << "MuscleEMGProfile(" << m._name << ", " << m._idx << "/" << m._capacity << ")" << std::endl; -} -*/ - -#endif /* MUSCLE_EMG_PROFILE_H_ */
\ No newline at end of file |