|
BmnRoot
|
#include "UniParser.h"#include "ElogConnection.h"#include "UniConnection.h"#include "UniDetectorParameter.h"#include "UniParameter.h"#include "UniRun.h"#include "TPRegexp.h"#include "TSQLResult.h"#include "TSQLRow.h"#include "TSQLServer.h"#include "TSQLStatement.h"#include "TSystem.h"#include "function_set.h"#include <algorithm>#include <fstream>#include <iostream>#include <libxml/parser.h>#include <libxml/tree.h>#include <sstream>#include <string>Go to the source code of this file.
Macros | |
| #define | ONLY_DECLARATIONS |
Functions | |
| int | parse_cycle_statement (xmlNodePtr &cur_schema_node, vector< structParseSchema > &vecElements, int &skip_count, char &delimiter_char, int &column_count) |
| TString | prepare_sql_code (vector< structParseSchema > vecElements, TString strTableName, bool isUpdate) |
| int | write_string_to_db (string &write_string, TSQLStatement *stmt, structParseSchema &schema, int &count, int cycle_counter) |
| xmlNodePtr | findNodeByName (xmlNodePtr rootnode, const char *nodename) |
| bool | check_element (const string &str, size_t pos, string element) |
| TDatime | stringToDatime (string str_time) |
| #define ONLY_DECLARATIONS |
Definition at line 8 of file UniParser.cxx.
| bool check_element | ( | const string & | str, |
| size_t | pos, | ||
| string | element | ||
| ) |
Definition at line 1282 of file UniParser.cxx.
References i.
Referenced by UniParser::ConvertElogCsv().
| xmlNodePtr findNodeByName | ( | xmlNodePtr | rootnode, |
| const char * | nodename | ||
| ) |
Definition at line 347 of file UniParser.cxx.
References findNodeByName().
Referenced by findNodeByName(), and UniParser::ParseXml2Db().
| int parse_cycle_statement | ( | xmlNodePtr & | cur_schema_node, |
| vector< structParseSchema > & | vecElements, | ||
| int & | skip_count, | ||
| char & | delimiter_char, | ||
| int & | column_count | ||
| ) |
Definition at line 31 of file UniParser.cxx.
References structParseSchema::isSkip, structParseSchema::isUpdate, and structParseSchema::vecRows.
Referenced by UniParser::ParseCsv2Db(), UniParser::ParseTxt2Db(), UniParser::ParseTxt2Struct(), and UniParser::ParseXml2Db().
| TString prepare_sql_code | ( | vector< structParseSchema > | vecElements, |
| TString | strTableName, | ||
| bool | isUpdate | ||
| ) |
Definition at line 136 of file UniParser.cxx.
References i, structParseSchema::isSkip, structParseSchema::isUpdate, structParseRow::strColumnName, and structParseSchema::vecRows.
Referenced by UniParser::ParseCsv2Db(), UniParser::ParseTxt2Db(), and UniParser::ParseXml2Db().
| TDatime stringToDatime | ( | string | str_time | ) |
Definition at line 1306 of file UniParser.cxx.
Referenced by UniParser::ConvertElogCsv().
| int write_string_to_db | ( | string & | write_string, |
| TSQLStatement * | stmt, | ||
| structParseSchema & | schema, | ||
| int & | count, | ||
| int | cycle_counter | ||
| ) |
Definition at line 205 of file UniParser.cxx.
References d, hex_string_to_int(), i, int_to_string(), structParseRow::isParse, structParseRow::iStartIndex, structParseSchema::isUpdate, replace_string_in_text(), structParseRow::strDelimiter, structParseRow::strParseType, structParseRow::strStatementType, trim(), and structParseSchema::vecRows.
Referenced by UniParser::ParseCsv2Db(), UniParser::ParseTxt2Db(), and UniParser::ParseXml2Db().