An abstract database entity. More...
#include <Entity.h>

Public Member Functions | |
| Entity (const uint32_t id=UNSET_ID, const time_t created=UNSET_TIME) | |
| Create a new Entity. | |
| time_t | getCreated () const |
| Created timestamp value accessor. | |
| uint32_t | getID () const |
| ID value accessor. | |
| void | setCreated (const time_t created) |
| Created timestamp value mutator. | |
| void | setID (const uint32_t id) |
| ID value mutator. | |
Static Public Attributes | |
| static const uint32_t | UNSET_ID = 0 |
| static const time_t | UNSET_TIME = 0 |
Private Attributes | |
| time_t | created_ |
| uint32_t | id_ |
An abstract database entity.
An entity contains basic database entity information such as an ID and created timestamp.
| Entity::Entity | ( | const uint32_t | id = UNSET_ID, |
| const time_t | created = UNSET_TIME |
||
| ) |
Create a new Entity.
Creates a new GraspDemonstration with the given values.
| id | The unique ID of the database entity (defaults to 0). |
| created | The created timestamp of the database entity (defaults to 0). |
Definition at line 16 of file Entity.cpp.
| time_t Entity::getCreated | ( | ) | const |
Created timestamp value accessor.
Get the created timestamp value of this Entity.
Definition at line 32 of file Entity.cpp.
| uint32_t Entity::getID | ( | ) | const |
ID value accessor.
Get the ID value of this Entity.
Definition at line 22 of file Entity.cpp.
| void Entity::setCreated | ( | const time_t | created | ) |
Created timestamp value mutator.
Set the created timestamp value of this Entity.
| created | The new created timestamp value. |
Definition at line 37 of file Entity.cpp.
| void Entity::setID | ( | const uint32_t | id | ) |
ID value mutator.
Set the ID value of this Entity.
| id | The new ID value. |
Definition at line 27 of file Entity.cpp.
time_t rail::pick_and_place::graspdb::Entity::created_ [private] |
uint32_t rail::pick_and_place::graspdb::Entity::id_ [private] |
const uint32_t rail::pick_and_place::graspdb::Entity::UNSET_ID = 0 [static] |
const time_t rail::pick_and_place::graspdb::Entity::UNSET_TIME = 0 [static] |