Public Member Functions | Protected Member Functions | Private Attributes | List of all members
dbutils::gui::DataTreeCreatorThread Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/DatabaseUtils/cxx/include/GUI/DataTreeCreatorThread.h"

Inheritance diagram for dbutils::gui::DataTreeCreatorThread:

Public Member Functions

 DataTreeCreatorThread (const std::string &tableDefinitionFileName, const std::vector< int64_t > &subsystemConfigIdList, QObject *parent=0)
 
boost::shared_ptr< daqconfig::ConfigDataTreegetTree ()
 

Protected Member Functions

void run ()
 

Private Attributes

std::string _tableDefinitionFileName
 
std::vector< int64_t > _subsystemConfigIdList
 
boost::shared_ptr< daqconfig::ConfigDataTree_dataTree
 
QMutex _dataTreeMutex
 

Detailed Description

Class for creating a ConfigDataTree in the background.

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

Definition at line 19 of file DataTreeCreatorThread.h.

Constructor & Destructor Documentation

dbutils::gui::DataTreeCreatorThread::DataTreeCreatorThread ( const std::string tableDefinitionFileName,
const std::vector< int64_t > &  subsystemConfigIdList,
QObject *  parent = 0 
)

Definition at line 10 of file DataTreeCreatorThread.cpp.

References febshutoff_auto::start.

12  :
13  QThread(parent), _tableDefinitionFileName(tableDefinitionFileName),
14  _subsystemConfigIdList(subsystemConfigIdList)
15 {
16  this->start();
17 }
std::vector< int64_t > _subsystemConfigIdList

Member Function Documentation

boost::shared_ptr< ConfigDataTree > dbutils::gui::DataTreeCreatorThread::getTree ( )

Definition at line 19 of file DataTreeCreatorThread.cpp.

References _dataTree, and _dataTreeMutex.

19  {
20  QMutexLocker dataTreeLock(&_dataTreeMutex);
21 
22  return _dataTree;
23 }
boost::shared_ptr< daqconfig::ConfigDataTree > _dataTree
void dbutils::gui::DataTreeCreatorThread::run ( )
protected

Definition at line 25 of file DataTreeCreatorThread.cpp.

References _dataTree, _dataTreeMutex, _subsystemConfigIdList, and _tableDefinitionFileName.

25  {
26  QMutexLocker dataTreeLock(&_dataTreeMutex);
27 
28  //std::cout << "TCT01 " << _tableDefinitionFileName << std::endl;
31  //std::cout << "TCT02 " << _tableDefinitionFileName << std::endl;
32 }
boost::shared_ptr< daqconfig::ConfigDataTree > _dataTree
std::vector< int64_t > _subsystemConfigIdList

Member Data Documentation

boost::shared_ptr<daqconfig::ConfigDataTree> dbutils::gui::DataTreeCreatorThread::_dataTree
private

Definition at line 37 of file DataTreeCreatorThread.h.

Referenced by getTree(), and run().

QMutex dbutils::gui::DataTreeCreatorThread::_dataTreeMutex
private

Definition at line 38 of file DataTreeCreatorThread.h.

Referenced by getTree(), and run().

std::vector<int64_t> dbutils::gui::DataTreeCreatorThread::_subsystemConfigIdList
private

Definition at line 36 of file DataTreeCreatorThread.h.

Referenced by run().

std::string dbutils::gui::DataTreeCreatorThread::_tableDefinitionFileName
private

Definition at line 35 of file DataTreeCreatorThread.h.

Referenced by run().


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