This class provides a lightweight logger.
Performs and provides configuration for Data objects from XML files.
std::map< std::string, std::vector< std::string > > _neededMeshes
to check later if all meshes that any coupling scheme needs are actually used by the participants
std::vector< PtrMesh > _meshes
Configured meshes.
void xmlTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &callingTag) override
Callback at begin of XML tag.
void addNeededMesh(const std::string &participant, const std::string &mesh)
const std::string TAG_DATA
void addMesh(const mesh::PtrMesh &mesh)
mesh::PtrMesh getMesh(const std::string &meshName) const
Returns the configured mesh with given name, or NULL.
std::unique_ptr< utils::ManageUniqueIDs > _meshIdManager
const std::string ATTR_NAME
std::unique_ptr< utils::ManageUniqueIDs > extractMeshIdManager()
MeshConfiguration(xml::XMLTag &parent, PtrDataConfiguration config)
Constructor, takes a valid data configuration as argument.
const PtrDataConfiguration & getDataConfiguration() const
utils::ManageUniqueIDs _dataIDManager
void xmlEndTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &callingTag) override
Callback at end of XML tag and at end of subtag.
bool hasMeshName(const std::string &meshName) const
Returns whether Mesh has Data with the dataName.
const std::string ATTR_DIMENSIONS
std::map< std::string, int > _meshDimensionsMap
static mesh::PtrMesh getJustInTimeMappingMesh(int dimension)
int getDataDimensions(const std::string &meshName, const Data::typeName typeName) const
Get the number of dimensions that data values of this type (scalar/vector) have on this mesh.
PtrDataConfiguration _dataConfig
Data configuration.
void insertMeshToMeshDimensionsMap(const std::string &mesh, int dimensions)
Initialize the map between meshes and dimensions, for unit tests that directly create mesh objects wi...
std::map< std::string, std::vector< std::string > > & getNeededMeshes()
const std::string ATTR_SIDE_INDEX
const std::vector< PtrMesh > & meshes() const
Returns all configured meshes.
Manages a set of unique IDs.
Represents an XML tag to be configured automatically.
provides Mesh, Data and primitives.
std::shared_ptr< DataConfiguration > PtrDataConfiguration
std::shared_ptr< Mesh > PtrMesh
Tightly coupled to the parameters of Participant()
Callback interface for configuration classes using XMLTag.