8#define BOOST_BIND_GLOBAL_PLACEHOLDERS
9#include <boost/property_tree/json_parser.hpp>
47 throw std::runtime_error(
"Unknown board type " +
boardType);
51 for(
auto & conn :
getList(
"connectors") ) {
92const std::vector<std::string> &
static const Attributes_t empty
std::vector< DataStructure > getList(const std::string &pathToChild, bool ignoreIfMissing=false) const
Access to array structure.
bool isInitialized() const
const ptree & data() const
Access to the underlying data, if needed.
DataStructure()
Default constructor, leading to an uninitialized configuration object.
T getAttribute(const std::string &key, bool ignoreIfMissing=false, const T &def=T()) const
Access to simple attribute.
virtual void update() override
Update the internal members.
bool legacy() const
Accessor to the connector type.
BoardType boardType() const
virtual std::string className() const override
A string that is the name of the class.
std::size_t size() const
Accessor to the number of connectors.
std::vector< std::string > m_connectorNames
const std::vector< std::string > & connectorNames() const
Accessor to connector names.