Xmipp
v3.23.11-Nereus
|
#include <xmipp_program_sql.h>
Public Member Functions | |
void | init (const FileName &dbName) |
ProgramDb () | |
ProgramDb (const FileName &dbName) | |
virtual | ~ProgramDb () |
bool | execStmt (const String &stmt, const String &error="") |
bool | beginTrans () |
bool | commitTrans () |
bool | createProgramTables () |
bool | insertProgram (DictDB &program) |
String | getLabelComment (const MDLabel &label) |
virtual void | printProgram (const ProgramDef &program, int v=0) |
virtual void | printSection (const SectionDef §ion, int v=0) |
virtual void | printParam (const ParamDef ¶m, int v=0) |
virtual void | printArgument (const ArgumentDef &argument, int v=0) |
virtual void | printCommentList (const CommentList &comments, int v=0) |
Public Member Functions inherited from Printer | |
virtual | ~Printer () |
virtual void | printToken (ArgToken *token) |
Class that will encapsulate the Xmipp objects representation on Sqlite db. Program are a kind of this objects. Programas db storing will be useful for handle meta-info.
Definition at line 45 of file xmipp_program_sql.h.
ProgramDb::ProgramDb | ( | ) |
ProgramDb::ProgramDb | ( | const FileName & | dbName | ) |
|
inlinevirtual |
bool ProgramDb::beginTrans | ( | ) |
Definition at line 59 of file xmipp_program_sql.cpp.
bool ProgramDb::commitTrans | ( | ) |
Definition at line 64 of file xmipp_program_sql.cpp.
bool ProgramDb::createProgramTables | ( | ) |
Create tables related with programs
Definition at line 70 of file xmipp_program_sql.cpp.
Begin and end transaction
Definition at line 49 of file xmipp_program_sql.cpp.
Get from the db the comment for a label
Select programs from db Update program data, id must be valid
Definition at line 162 of file xmipp_program_sql.cpp.
void ProgramDb::init | ( | const FileName & | dbName | ) |
bool ProgramDb::insertProgram | ( | DictDB & | program | ) |
Insert a program into db, the id field will be filled
Insert program into db, the id field will be filled
Delete first the program if exist
Definition at line 110 of file xmipp_program_sql.cpp.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements Printer.
Definition at line 180 of file xmipp_program_sql.cpp.
|
virtual |