40 lines
329 B
C++
40 lines
329 B
C++
#ifndef CASE_H
|
|
#define CASE_H
|
|
|
|
|
|
#include "header.h"
|
|
|
|
|
|
typedef enum
|
|
{
|
|
EMPTY,
|
|
FILLED
|
|
|
|
} State;
|
|
|
|
|
|
class Case
|
|
{
|
|
public:
|
|
|
|
Case();
|
|
|
|
unsigned int getValue(void) const;
|
|
State getState(void) const;
|
|
|
|
void setValue(unsigned int);
|
|
void setState(State);
|
|
|
|
~Case();
|
|
|
|
private:
|
|
|
|
unsigned int value;
|
|
|
|
State state;
|
|
|
|
};
|
|
|
|
|
|
#endif
|