BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
UniParser.cxx File Reference
#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>
Include dependency graph for UniParser.cxx:

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)

Macro Definition Documentation

◆ ONLY_DECLARATIONS

#define ONLY_DECLARATIONS

Definition at line 8 of file UniParser.cxx.

Function Documentation

◆ check_element()

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().

Here is the caller graph for this function:

◆ findNodeByName()

xmlNodePtr findNodeByName ( xmlNodePtr rootnode,
const char * nodename )

Definition at line 347 of file UniParser.cxx.

References findNodeByName().

Referenced by findNodeByName(), and UniParser::ParseXml2Db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_cycle_statement()

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().

Here is the caller graph for this function:

◆ prepare_sql_code()

TString prepare_sql_code ( vector< structParseSchema > vecElements,
TString strTableName,
bool isUpdate )

Definition at line 136 of file UniParser.cxx.

References TString::Data(), TString::Format(), i, structParseSchema::isSkip, structParseSchema::isUpdate, structParseRow::strColumnName, and structParseSchema::vecRows.

Referenced by UniParser::ParseCsv2Db(), UniParser::ParseTxt2Db(), and UniParser::ParseXml2Db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stringToDatime()

TDatime stringToDatime ( string str_time)

Definition at line 1306 of file UniParser.cxx.

Referenced by UniParser::ConvertElogCsv().

Here is the caller graph for this function:

◆ write_string_to_db()

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, TString::Data(), hex_string_to_int(), i, int_to_string(), structParseRow::isParse, structParseRow::iStartIndex, structParseSchema::isUpdate, TString::Length(), replace_string_in_text(), TSQLStatement::SetDatime(), TSQLStatement::SetDouble(), TSQLStatement::SetInt(), TSQLStatement::SetLargeObject(), TSQLStatement::SetString(), structParseRow::strDelimiter, structParseRow::strParseType, structParseRow::strStatementType, trim(), and structParseSchema::vecRows.

Referenced by UniParser::ParseCsv2Db(), UniParser::ParseTxt2Db(), and UniParser::ParseXml2Db().

Here is the call graph for this function:
Here is the caller graph for this function: