#include <Fireworks/Core/interface/FWConfiguration.h>
Public Types | |
typedef std::vector< std::pair < std::string, FWConfiguration > > | KeyValues |
typedef KeyValues::const_iterator | KeyValuesIt |
typedef std::vector< std::string > | StringValues |
typedef StringValues::const_iterator | StringValuesIt |
Public Member Functions | |
FWConfiguration & | addKeyValue (const std::string &, const FWConfiguration &) |
FWConfiguration & | addKeyValue (const std::string &, FWConfiguration &, bool iDoSwap=false) |
FWConfiguration & | addValue (const std::string &) |
FWConfiguration (unsigned int iVersion=1) | |
FWConfiguration (const std::string &iValue) | |
FWConfiguration (const FWConfiguration &) | |
const KeyValues * | keyValues () const |
FWConfiguration & | operator= (const FWConfiguration &) |
const StringValues * | stringValues () const |
void | swap (FWConfiguration &) |
const std::string & | value (unsigned int iIndex=0) const |
const FWConfiguration * | valueForKey (const std::string &iKey) const |
unsigned int | version () const |
virtual | ~FWConfiguration () |
Static Public Member Functions | |
static void | streamTo (std::ostream &oTo, const FWConfiguration &iConfig, const std::string &name) |
Private Attributes | |
std::unique_ptr< std::vector < std::pair< std::string, FWConfiguration > > > | m_keyValues |
std::unique_ptr< std::vector < std::string > > | m_stringValues |
unsigned int | m_version |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 31 of file FWConfiguration.h.
typedef std::vector<std::pair<std::string, FWConfiguration> > FWConfiguration::KeyValues |
Definition at line 40 of file FWConfiguration.h.
typedef KeyValues::const_iterator FWConfiguration::KeyValuesIt |
Definition at line 41 of file FWConfiguration.h.
typedef std::vector<std::string> FWConfiguration::StringValues |
Definition at line 43 of file FWConfiguration.h.
typedef StringValues::const_iterator FWConfiguration::StringValuesIt |
Definition at line 44 of file FWConfiguration.h.
|
inline |
|
inline |
Definition at line 34 of file FWConfiguration.h.
|
virtual |
Definition at line 42 of file FWConfiguration.cc.
FWConfiguration::FWConfiguration | ( | const FWConfiguration & | rhs | ) |
Definition at line 37 of file FWConfiguration.cc.
FWConfiguration & FWConfiguration::addKeyValue | ( | const std::string & | iKey, |
const FWConfiguration & | iConfig | ||
) |
Definition at line 58 of file FWConfiguration.cc.
References m_keyValues, and m_stringValues.
Referenced by addAreaInfoTo(), FWEventAnnotation::addTo(), CmsAnnotation::addTo(), FWCompositeParameter::addTo(), FWTriggerTableView::addTo(), FWLegoViewBase::addTo(), FWGenericParameter< T >::addTo(), FWEventItemsManager::addTo(), FWProxyBuilderConfiguration::addTo(), FWTableView::addTo(), CmsShowNavigator::addTo(), FWGeometryTableViewBase::addTo(), FWGUIManager::addTo(), FWTableViewManager::addToImpl(), FWEveView::addToOrthoCamera(), FWEveView::addToPerspectiveCamera(), addWindowInfoTo(), FWEventItemsManager::setFrom(), FWConfigurationManager::to(), and FWPartialConfigSaveGUI::WriteConfig().
FWConfiguration & FWConfiguration::addKeyValue | ( | const std::string & | iKey, |
FWConfiguration & | iConfig, | ||
bool | iDoSwap = false |
||
) |
Definition at line 69 of file FWConfiguration.cc.
References FWConfiguration(), m_keyValues, and m_stringValues.
FWConfiguration & FWConfiguration::addValue | ( | const std::string & | iValue | ) |
Definition at line 94 of file FWConfiguration.cc.
References m_keyValues, and m_stringValues.
Referenced by FWTableViewManager::addToImpl().
|
inline |
Definition at line 51 of file FWConfiguration.h.
References m_keyValues.
Referenced by FWProxyBuilderConfiguration::assertParam(), FWPartialConfigGUI::FWPartialConfigGUI(), FWConfigurationManager::guessAndReadFromFile(), FWPartialConfigLoadGUI::Load(), FWGeometryTableViewBase::populate3DViewsFromConfig(), FWConfigurationManager::setFrom(), FWCompositeParameter::setFrom(), FWEventItemsManager::setFrom(), CmsShowNavigator::setFrom(), FWGUIManager::setFrom(), streamTo(), and FWPartialConfigSaveGUI::WriteConfig().
FWConfiguration & FWConfiguration::operator= | ( | const FWConfiguration & | rhs | ) |
Definition at line 47 of file FWConfiguration.cc.
References swap(), and groupFilesInBlocks::temp.
|
static |
Streaming FWConfiguration objects to xml.
Example of dump is:
<config name="top" version="1"> <string value="S1"> <string value="S2"> ... <string value="SN"> <config name="c1"> ... </configuration> <config name="c2"> ... </config> ... </config>
Streaming the top level configuration item will stream all its children.
Definition at line 196 of file FWConfiguration.cc.
References attrEscape(), keyValues(), AlCaHLTBitMon_QueryRunRegistry::string, stringValues(), and version().
Referenced by FWPartialConfigSaveGUI::WriteConfig(), and FWConfigurationManager::writeToFile().
|
inline |
Definition at line 52 of file FWConfiguration.h.
References m_stringValues.
Referenced by FWTableViewManager::setFrom(), and streamTo().
void FWConfiguration::swap | ( | FWConfiguration & | iRHS | ) |
Definition at line 106 of file FWConfiguration.cc.
References m_keyValues, m_stringValues, m_version, and std::swap().
Referenced by FWPartialConfigGUI::FWPartialConfigGUI(), operator=(), and FWPartialConfigSaveGUI::WriteConfig().
const std::string & FWConfiguration::value | ( | unsigned int | iIndex = 0 | ) | const |
Definition at line 115 of file FWConfiguration.cc.
References m_stringValues.
Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), average.Average::average(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), Mixins.UsingBlock::insertInto(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), FWEventAnnotation::setFrom(), CmsAnnotation::setFrom(), FWLegoViewBase::setFrom(), FWTriggerTableView::setFrom(), FWRPZView::setFrom(), CmsShowCommon::setFrom(), FW3DViewBase::setFrom(), FWTableView::setFrom(), CmsShowNavigator::setFrom(), FWGUIManager::setFrom(), FWEveView::setFromOrthoCamera(), FWEveView::setFromPerspectiveCamera(), FWGeometryTableViewBase::setTopNodePathFromConfig(), and FWGUIManager::setWindowInfoFrom().
const FWConfiguration * FWConfiguration::valueForKey | ( | const std::string & | iKey | ) | const |
Definition at line 122 of file FWConfiguration.cc.
References first, m_keyValues, and m_stringValues.
Referenced by FWProxyBuilderConfiguration::assertParam(), FWEventAnnotation::setFrom(), CmsAnnotation::setFrom(), FWCompositeParameter::setFrom(), FWOverlapTableView::setFrom(), FWLegoViewBase::setFrom(), FWTriggerTableView::setFrom(), FWRPZView::setFrom(), FWEventItemsManager::setFrom(), FWGeometryTableView::setFrom(), FW3DViewBase::setFrom(), CmsShowCommon::setFrom(), FWGenericParameter< T >::setFrom(), FWTableView::setFrom(), FWTableViewManager::setFrom(), CmsShowNavigator::setFrom(), FWGUIManager::setFrom(), FWEveView::setFromOrthoCamera(), FWEveView::setFromPerspectiveCamera(), FWGeometryTableViewBase::setTopNodePathFromConfig(), and FWGUIManager::setWindowInfoFrom().
|
inline |
Definition at line 49 of file FWConfiguration.h.
References m_version.
Referenced by validation.Sample::datasetpattern(), validation.Sample::filename(), FWCompositeParameter::setFrom(), FWConfigurableParameterizable::setFrom(), FWLegoViewBase::setFrom(), FWTriggerTableView::setFrom(), FWRPZView::setFrom(), FWEventItemsManager::setFrom(), FW3DViewBase::setFrom(), FWEveView::setFrom(), FWTableView::setFrom(), FWGUIManager::setFrom(), and streamTo().
|
private |
Definition at line 68 of file FWConfiguration.h.
Referenced by addKeyValue(), addValue(), keyValues(), swap(), and valueForKey().
|
private |
Definition at line 67 of file FWConfiguration.h.
Referenced by addKeyValue(), addValue(), stringValues(), swap(), value(), and valueForKey().
|
private |
Definition at line 69 of file FWConfiguration.h.