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

35 lines
544 B
C

/*
* BaseComponent.h
*
* Author: Aleksey Gerasimenko
* gerasimenko.aleksey.n@gmail.com
*/
#include <math.h>
#include <stdint.h>
#ifndef SYSCTRL_BASECOMPONENT_H_
#define SYSCTRL_BASECOMPONENT_H_
namespace SYSCTRL
{
class BaseComponent
{
public:
enum mode_t {UNDEFINED, CONFIGURATE, OPERATIONAL};
protected:
mode_t m_mode;
protected:
float m_time_sample;
public:
BaseComponent();
public:
mode_t get_mode();
bool compare(mode_t mode);
};
} /* namespace SYSCTRL */
#endif /* SYSCTRL_BASECOMPONENT_H_ */