CMS 3D CMS Logo

Macros | Functions
ODFEDAQConfig.cc File Reference
#include <stdexcept>
#include <cstdlib>
#include <string>
#include <cstring>
#include "OnlineDB/Oracle/interface/Oracle.h"
#include "OnlineDB/EcalCondDB/interface/ODFEDAQConfig.h"

Go to the source code of this file.

Macros

#define MY_NULL   -1
 
#define SET_INT(statement, paramNum, paramVal)
 
#define SET_STRING(statement, paramNum, paramVal)
 

Functions

int getInt (ResultSet *rset, int ipar)
 

Macro Definition Documentation

◆ MY_NULL

#define MY_NULL   -1

Definition at line 12 of file ODFEDAQConfig.cc.

Referenced by ODFEDAQConfig::clear(), and getInt().

◆ SET_INT

#define SET_INT (   statement,
  paramNum,
  paramVal 
)
Value:
if (paramVal != MY_NULL) { \
statement->setInt(paramNum, paramVal); \
} else { \
statement->setNull(paramNum, OCCINUMBER); \
}
#define MY_NULL

Definition at line 13 of file ODFEDAQConfig.cc.

Referenced by ODFEDAQConfig::writeDB().

◆ SET_STRING

#define SET_STRING (   statement,
  paramNum,
  paramVal 
)
Value:
if (!paramVal.empty()) { \
statement->setString(paramNum, paramVal); \
} else { \
statement->setNull(paramNum, OCCICHAR); \
}

Definition at line 19 of file ODFEDAQConfig.cc.

Function Documentation

◆ getInt()

int getInt ( ResultSet *  rset,
int  ipar 
)

Definition at line 26 of file ODFEDAQConfig.cc.

References MY_NULL.

Referenced by HcalLutManager::create_lut_loader(), and ODFEDAQConfig::fetchData().

26 { return rset->isNull(ipar) ? MY_NULL : rset->getInt(ipar); }
#define MY_NULL