Namespaces | Classes | Functions | Variables
dbutils::gui Namespace Reference

Namespaces

 CustomTabBehaviors
 

Classes

class  BasicEditorDisplay
 
class  BitmapEditor
 
class  Changeable
 
class  ConfigDataTableEditor
 
class  ConfigDataTableModel
 
class  ConfigDataTreeEditor
 
class  ConfigDataTreeModel
 
class  ConfigSelectionDialog
 
class  CustomTabWidget
 
class  DAQConfigEditorDisplay
 
class  DataTreeCreatorThread
 
class  DBParamsGroupBox
 
class  DCSConfigEditorDisplay
 
class  NamedConfigDataModel
 
class  NamedConfigGroupBox
 
class  NamedConfigTree
 
class  NameValueLabelPair
 
class  SettingsDisplay
 
class  Storeable
 
class  TabbedSetOfTableEditors
 
class  TabbedSetOfTreeEditors
 
class  TreeItem
 

Functions

std::string _createFEBDisplayString (const std::string &febId)
 
std::string _createPixelDisplayString (const std::string &pixelId)
 
QString _createFEBDisplayString (const QString &febId)
 
QString _createPixelDisplayString (const QString &pixelId)
 
int32_t _getIDFromDisplayString (const std::string &displayString)
 
std::string _getIDFromDisplayString2 (const std::string &displayString)
 

Variables

const int32_t INVALID_ID = -123
 

Function Documentation

std::string dbutils::gui::_createFEBDisplayString ( const std::string febId)

Definition at line 67 of file ConfigDataTreeModel.cpp.

Referenced by dbutils::gui::ConfigDataTreeModel::_populateSubTree(), and dbutils::gui::ConfigDataTreeModel::addChildRow().

67  {
68  return ("FEB " + febId);
69 }
QString dbutils::gui::_createFEBDisplayString ( const QString &  febId)

Definition at line 75 of file ConfigDataTreeModel.cpp.

75  {
76  return _createFEBDisplayString(febId.toStdString()).c_str();
77 }
QString _createFEBDisplayString(const QString &febId)
std::string dbutils::gui::_createPixelDisplayString ( const std::string pixelId)

Definition at line 71 of file ConfigDataTreeModel.cpp.

Referenced by dbutils::gui::ConfigDataTreeModel::_populateSubTree(), and dbutils::gui::ConfigDataTreeModel::addChildRow().

71  {
72  return ("Pixel " + pixelId);
73 }
QString dbutils::gui::_createPixelDisplayString ( const QString &  pixelId)

Definition at line 79 of file ConfigDataTreeModel.cpp.

79  {
80  return _createPixelDisplayString(pixelId.toStdString()).c_str();
81 }
QString _createPixelDisplayString(const QString &pixelId)
int32_t dbutils::gui::_getIDFromDisplayString ( const std::string displayString)

Definition at line 85 of file ConfigDataTreeModel.cpp.

References INVALID_ID, elec2geo::pos, fillBadChanDBTables::result, string, trim(), and cet::trim_copy().

Referenced by dbutils::gui::ConfigDataTreeModel::allowsChildInsert(), dbutils::gui::ConfigDataTreeModel::allowsInsertAfter(), and dbutils::gui::ConfigDataTreeModel::allowsInsertBefore().

85  {
86  int32_t result = INVALID_ID;
87 
88  std::string workString = boost::trim_copy(displayString);
89  size_t pos = workString.rfind(" ");
90  if (pos != std::string::npos) {
91  std::string idString = workString.substr(pos);
92  boost::trim(idString);
93  try {
94  result = boost::lexical_cast<int32_t>(idString);
95  }
96  catch (...) {}
97  }
98 
99  return result;
100 }
string trim(string in)
Definition: rootgINukeVal.C:65
std::string trim_copy(std::string source, std::string const &t=" ")
Definition: trim.h:66
const int32_t INVALID_ID
enum BeamMode string
std::string dbutils::gui::_getIDFromDisplayString2 ( const std::string displayString)

Definition at line 102 of file ConfigDataTreeModel.cpp.

References elec2geo::pos, string, trim(), and cet::trim_copy().

Referenced by dbutils::gui::ConfigDataTreeModel::saveChanges().

102  {
103  std::string workString = boost::trim_copy(displayString);
104  size_t pos = workString.rfind(" ");
105  if (pos != std::string::npos) {
106  workString = workString.substr(pos);
107  boost::trim(workString);
108  }
109 
110  return workString;
111 }
string trim(string in)
Definition: rootgINukeVal.C:65
std::string trim_copy(std::string source, std::string const &t=" ")
Definition: trim.h:66
enum BeamMode string

Variable Documentation

const int32_t dbutils::gui::INVALID_ID = -123

Definition at line 83 of file ConfigDataTreeModel.cpp.

Referenced by _getIDFromDisplayString().