UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
PolarityLDB Class Reference

#include <polarity_ldb.hpp>

Public Member Functions

 PolarityLDB (const dbItem &db_item, const std::string table_name=std::string(), bool is_rewrite=true)
 
 ~PolarityLDB ()
 
bool load (PolarityVec &pol_vec)
 
bool save (const PolarityVec &pol_vec, int *saved_db_line=0x0)
 
void setDbItem (const dbItem &db_item)
 
const dbItemgetDbItem () const
 
void setTableName (const std::string &table_name)
 
const std::string & getTableName () const
 
void setRewriteFlag (bool rewrite)
 
bool getRewriteFlag () const
 

Protected Attributes

dbItem m_db_item
 
std::string m_table_name
 
bool m_b_rewrite
 

Detailed Description

LDB i/o object for polarity table

Constructor & Destructor Documentation

PolarityLDB::PolarityLDB ( const dbItem db_item,
const std::string  table_name = std::string(),
bool  is_rewrite = true 
)

Default constructor with ldb item, table name and rewrite flag provided.

PolarityLDB::~PolarityLDB ( )

Destrictor.

Member Function Documentation

bool PolarityLDB::load ( PolarityVec &  pol_vec)

Load table from LDB item into provided polarity table. Return false on error.

bool PolarityLDB::save ( const PolarityVec &  pol_vec,
int *  saved_db_line = 0x0 
)

Save provided polarity into LDB item. May return line where item was saved. Return false on error.

Member Data Documentation

bool PolarityLDB::m_b_rewrite
protected

Rewrite LDB table flag.

dbItem PolarityLDB::m_db_item
protected

LDB item.

std::string PolarityLDB::m_table_name
protected

Name of the table.


The documentation for this class was generated from the following file: