Static Public Member Functions | List of all members
dbutils::daqconfig::DBColumnUtils Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-30/DatabaseUtils/cxx/include/DAQConfig/DBColumnUtils.h"

Static Public Member Functions

static bool isInfrastructureColumn (const std::string &columnName)
 
static bool isSubsystemConfigReferenceColumn (const std::string &columnName)
 
static bool isNamedConfigReferenceColumn (const std::string &columnName)
 

Detailed Description

Utilities for handling and testing columns.

Author
Kurt Biery
Version
Revision
1.1.28.1
Date
2019/09/27 00:07:03

Definition at line 16 of file DBColumnUtils.h.

Member Function Documentation

bool dbutils::daqconfig::DBColumnUtils::isInfrastructureColumn ( const std::string columnName)
static

Definition at line 8 of file DBColumnUtils.cpp.

References dbutils::daqconfig::NamedConfigUtils::ID_COLUMN_NAME, dbutils::daqconfig::NamedConfigUtils::INSERTTIME_COLUMN_NAME, dbutils::daqconfig::NamedConfigUtils::INSERTUSER_COLUMN_NAME, isSubsystemConfigReferenceColumn(), dbutils::daqconfig::NamedConfigUtils::UPDATETIME_COLUMN_NAME, and dbutils::daqconfig::NamedConfigUtils::UPDATEUSER_COLUMN_NAME.

Referenced by dbutils::daqappmgr::ConfiguredProcessList::_fetchProcessData(), dbutils::daqconfig::DLRunConfig::_fetchStreamData(), dbutils::daqconfig::GTRunConfig::_fetchTriggerData(), and dbutils::daqconfig::ConfigDataTree::ConfigDataTree().

9 {
10  if (columnName == NamedConfigUtils::ID_COLUMN_NAME) {return true;}
11  if (columnName == NamedConfigUtils::INSERTTIME_COLUMN_NAME) {return true;}
12  if (columnName == NamedConfigUtils::INSERTUSER_COLUMN_NAME) {return true;}
13  if (columnName == NamedConfigUtils::UPDATETIME_COLUMN_NAME) {return true;}
14  if (columnName == NamedConfigUtils::UPDATEUSER_COLUMN_NAME) {return true;}
15 
16  return false;
17 }
static const std::string INSERTTIME_COLUMN_NAME
static const std::string UPDATEUSER_COLUMN_NAME
static const std::string UPDATETIME_COLUMN_NAME
static const std::string ID_COLUMN_NAME
static const std::string INSERTUSER_COLUMN_NAME
bool dbutils::daqconfig::DBColumnUtils::isNamedConfigReferenceColumn ( const std::string columnName)
static

Definition at line 28 of file DBColumnUtils.cpp.

References dbutils::daqconfig::NamedConfigUtils::GLOBALCFGID_COLUMN_NAME, dbutils::daqconfig::NamedConfigUtils::PARENTID_COLUMN_NAME, and dbutils::daqconfig::NamedConfigUtils::SUBSYSCFGID_COLUMN_NAME.

Referenced by isSubsystemConfigReferenceColumn().

29 {
30  if (columnName == NamedConfigUtils::SUBSYSCFGID_COLUMN_NAME) {return true;}
31  if (columnName == NamedConfigUtils::GLOBALCFGID_COLUMN_NAME) {return true;}
32  if (columnName == NamedConfigUtils::PARENTID_COLUMN_NAME) {return true;}
33 
34  return false;
35 }
static const std::string GLOBALCFGID_COLUMN_NAME
static const std::string PARENTID_COLUMN_NAME
static const std::string SUBSYSCFGID_COLUMN_NAME
bool dbutils::daqconfig::DBColumnUtils::isSubsystemConfigReferenceColumn ( const std::string columnName)
static

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