Virtual Testbed
Ship dynamics simulator for extreme conditions
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtb::db::Entity Class Reference
Inheritance diagram for vtb::db::Entity:
[legend]
Collaboration diagram for vtb::db::Entity:
[legend]

Public Types

typedef int64_t id_type
 
typedef std::string string_type
 
typedef const std::stringstring_reference
 

Public Member Functions

id_type id () const
 
void id (id_type rhs)
 
bool has_id () const
 
const std::stringname () const
 
std::stringname ()
 
void name (const std::string &rhs)
 
string_reference description () const
 
void description (string_reference &rhs)
 
string_reference filename () const
 
const sqlite::blob & file_content () const
 
void clear ()
 
void export_original (std::string filename) const
 

Protected Member Functions

std::string temporary_filename () const
 

Protected Attributes

id_type _id = 0
 
std::string _name
 
std::string _description
 
std::string _filename
 
sqlite::blob _filecontent
 

Detailed Description

Definition at line 13 of file db/entity.hh.