obelisk/src/models/rule.h

60 lines
1.2 KiB
C
Raw Normal View History

2022-11-01 01:04:41 -03:00
#ifndef OBELISK_MODELS_RULE_H
#define OBELISK_MODELS_RULE_H
#include "models/fact.h"
#include <string>
namespace obelisk
{
class Rule
{
private:
int id_;
obelisk::Fact fact_;
obelisk::Fact reason_;
public:
Rule() :
id_(0),
fact_(),
reason_()
{
}
Rule(int id) :
id_(id),
fact_(),
reason_()
{
}
Rule(obelisk::Fact fact, obelisk::Fact reason) :
id_(0),
fact_(fact),
reason_(reason)
{
}
Rule(int id, obelisk::Fact fact, obelisk::Fact reason) :
id_(id),
fact_(fact),
reason_(reason)
{
}
static const char* createTable();
2022-11-26 00:32:06 -03:00
int& getId();
2022-11-01 01:04:41 -03:00
void setId(int id);
2022-11-26 00:32:06 -03:00
obelisk::Fact& getFact();
2022-11-01 01:04:41 -03:00
void setFact(obelisk::Fact fact);
2022-11-26 00:32:06 -03:00
obelisk::Fact& getReason();
2022-11-01 01:04:41 -03:00
void setReason(obelisk::Fact reason);
};
} // namespace obelisk
#endif