feature/kb #14
@ -142,17 +142,17 @@ void obelisk::KnowledgeBase::addFacts(std::vector<obelisk::Fact>& facts)
|
||||
|
||||
void obelisk::KnowledgeBase::getEntity(obelisk::Entity& entity)
|
||||
{
|
||||
entity.select(dbConnection_);
|
||||
entity.selectByName(dbConnection_);
|
||||
}
|
||||
|
||||
void obelisk::KnowledgeBase::getVerb(obelisk::Verb& verb)
|
||||
{
|
||||
verb.select(dbConnection_);
|
||||
verb.selectByName(dbConnection_);
|
||||
}
|
||||
|
||||
void obelisk::KnowledgeBase::getFact(obelisk::Fact& fact)
|
||||
{
|
||||
fact.select(dbConnection_);
|
||||
fact.selectByName(dbConnection_);
|
||||
}
|
||||
|
||||
void obelisk::KnowledgeBase::getFloat(float& result1, float& result2, double var)
|
||||
|
@ -12,7 +12,7 @@ const char* obelisk::Entity::createTable()
|
||||
)";
|
||||
}
|
||||
|
||||
void obelisk::Entity::select(sqlite3* dbConnection)
|
||||
void obelisk::Entity::selectByName(sqlite3* dbConnection)
|
||||
{
|
||||
if (dbConnection == nullptr)
|
||||
{
|
||||
|
@ -108,11 +108,11 @@ namespace obelisk
|
||||
|
||||
/**
|
||||
* @brief Select an Entity from the database based on the object's
|
||||
* ID.
|
||||
* name.
|
||||
*
|
||||
* @param[in] dbConnection The database connection to use.
|
||||
*/
|
||||
void select(sqlite3* dbConnection);
|
||||
void selectByName(sqlite3* dbConnection);
|
||||
|
||||
/**
|
||||
* @brief Insert an Entity into the database based on the object's
|
||||
|
@ -19,7 +19,7 @@ const char* obelisk::Fact::createTable()
|
||||
)";
|
||||
}
|
||||
|
||||
void obelisk::Fact::select(sqlite3* dbConnection)
|
||||
void obelisk::Fact::selectByName(sqlite3* dbConnection)
|
||||
{
|
||||
if (dbConnection == nullptr)
|
||||
{
|
||||
|
@ -76,7 +76,7 @@ namespace obelisk
|
||||
bool& getIsTrue();
|
||||
void setIsTrue(bool isTrue);
|
||||
|
||||
void select(sqlite3* dbConnection);
|
||||
void selectByName(sqlite3* dbConnection);
|
||||
void insert(sqlite3* dbConnection);
|
||||
};
|
||||
} // namespace obelisk
|
||||
|
@ -14,7 +14,7 @@ const char* obelisk::Verb::createTable()
|
||||
)";
|
||||
}
|
||||
|
||||
void obelisk::Verb::select(sqlite3* dbConnection)
|
||||
void obelisk::Verb::selectByName(sqlite3* dbConnection)
|
||||
{
|
||||
if (dbConnection == nullptr)
|
||||
{
|
||||
|
@ -112,7 +112,7 @@ namespace obelisk
|
||||
*
|
||||
* @param[in] dbConnection The database connection to use.
|
||||
*/
|
||||
void select(sqlite3* dbConnection);
|
||||
void selectByName(sqlite3* dbConnection);
|
||||
|
||||
/**
|
||||
* @brief Insert a new verb into the KnowledgeBase.
|
||||
|
Loading…
Reference in New Issue
Block a user