3 #ifndef __polarity_ldb_hpp
4 #define __polarity_ldb_hpp
8 #include <ldb/dbtools.h>
9 #include <s2proc/polarity.hpp>
18 const std::string table_name = std::string(),
19 bool is_rewrite =
true);
27 bool load(PolarityVec &pol_vec);
31 bool save(
const PolarityVec &pol_vec,
int *saved_db_line = 0x0);
38 void setTableName(
const std::string &table_name)
41 const std::string& getTableName()
const
44 void setRewriteFlag(
bool rewrite) {
m_b_rewrite = rewrite;}
Definition: polarity_ldb.hpp:12
PolarityLDB(const dbItem &db_item, const std::string table_name=std::string(), bool is_rewrite=true)
bool m_b_rewrite
Definition: polarity_ldb.hpp:57
std::string m_table_name
Definition: polarity_ldb.hpp:54
bool save(const PolarityVec &pol_vec, int *saved_db_line=0x0)
bool load(PolarityVec &pol_vec)
Definition: dbnamedefs.h:85
dbItem m_db_item
Definition: polarity_ldb.hpp:51