You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
461 B

//
// Counter.h
//
// implements an up/down-Counter
//
// (C) R. Bonderer, HSR Hochschule Rapperswil, Okt. 2017
//
#ifndef COUNTER_H__
#define COUNTER_H__
class Counter
{
public:
Counter(int val);
void count(int step);
// counts the counter up (step>0) or down (step<0) by step
int getCounter() const;
// returns the counter value
void setCounter(int val);
// sets the counter to val
private:
int countValue;
};
#endif