BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
UniParser Class Reference

#include <UniParser.h>

Public Member Functions

 UniParser ()
virtual ~UniParser ()
int ParseXml2Db (TString xmlName, TString schemaPath, bool isUpdate=false)
int ParseCsv2Db (TString csvName, TString schemaPath, bool isUpdate=false)
int ParseTxt2Db (TString txtName, TString schemaPath, bool isUpdate=false)
int ParseTxtNoise2Db (int period_number, TString txtName, TString schemaPath)
int ParseDb2Db ()
int ParseTxt2Struct (TString txtName, TString schemaPath, vector< structParseValue * > &parse_values, vector< structParseSchema > &vecElements, int iVerbose=1)
int ConvertElogCsv (TString csvName="parse_schemes/elog.csv", char separate_symbol=';')

Detailed Description

Definition at line 96 of file UniParser.h.

Constructor & Destructor Documentation

◆ UniParser()

UniParser::UniParser ( )

Definition at line 27 of file UniParser.cxx.

◆ ~UniParser()

UniParser::~UniParser ( )
virtual

Definition at line 29 of file UniParser.cxx.

Member Function Documentation

◆ ConvertElogCsv()

◆ ParseCsv2Db()

int UniParser::ParseCsv2Db ( TString csvName,
TString schemaPath,
bool isUpdate = false )

Definition at line 548 of file UniParser.cxx.

References UniConnection::GetSQLServer(), i, structParseSchema::isSkip, TSQLStatement::NextIteration(), UniConnection::Open(), parse_cycle_statement(), prepare_sql_code(), TSQLStatement::Process(), TSQLServer::Statement(), trim(), and write_string_to_db().

Here is the call graph for this function:

◆ ParseDb2Db()

int UniParser::ParseDb2Db ( )

Definition at line 959 of file UniParser.cxx.

References TSQLServer::Connect(), TString::Data(), find_first_number(), TString::Format(), TSQLStatement::GetInt(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextIteration(), TSQLStatement::NextResultRow(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ ParseTxt2Db()

int UniParser::ParseTxt2Db ( TString txtName,
TString schemaPath,
bool isUpdate = false )

Definition at line 666 of file UniParser.cxx.

References UniConnection::GetSQLServer(), i, structParseSchema::isSkip, TSQLStatement::NextIteration(), UniConnection::Open(), parse_cycle_statement(), prepare_sql_code(), TSQLStatement::Process(), TSQLServer::Statement(), trim(), and write_string_to_db().

Here is the call graph for this function:

◆ ParseTxt2Struct()

int UniParser::ParseTxt2Struct ( TString txtName,
TString schemaPath,
vector< structParseValue * > & parse_values,
vector< structParseSchema > & vecElements,
int iVerbose = 1 )

Definition at line 1078 of file UniParser.cxx.

References structParseValue::arrValues, TDatime::AsSQLString(), TString::Contains(), TString::Data(), structParseValue::dtSpillEnd, TString::Format(), i, structParseSchema::isSkip, parse_cycle_statement(), reduce(), and structParseSchema::vecRows.

Referenced by BmnMscRaw2Digit::ParseTxtSpillLog(), run_beam_info(), and Spill().

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

◆ ParseTxtNoise2Db()

int UniParser::ParseTxtNoise2Db ( int period_number,
TString txtName,
TString schemaPath )

Definition at line 797 of file UniParser.cxx.

References UniDetectorParameter::CreateDetectorParameter(), i, is_string_number(), UniConnection::Open(), reduce(), trim(), IIValue::value1, and IIValue::value2.

Here is the call graph for this function:

◆ ParseXml2Db()

int UniParser::ParseXml2Db ( TString xmlName,
TString schemaPath,
bool isUpdate = false )

Definition at line 377 of file UniParser.cxx.

References TString::Data(), findNodeByName(), UniConnection::GetSQLServer(), i, structParseSchema::isSkip, TSQLStatement::NextIteration(), UniConnection::Open(), parse_cycle_statement(), prepare_sql_code(), TSQLStatement::Process(), TSQLServer::Statement(), and write_string_to_db().

Referenced by parse_data_to_db().

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

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