9 #include "fwActivities/config.hpp" 11 #include <fwCore/BaseObject.hpp> 12 #include <fwCore/mt/types.hpp> 14 #include <fwRuntime/ConfigurationElement.hpp> 15 #include <fwRuntime/EConfigurationElement.hpp> 17 #include <boost/property_tree/ptree.hpp> 38 typedef ::boost::property_tree::ptree ConfigType;
51 return (by.substr(0, 1) ==
"@") || (by.substr(0, 1) ==
"!");
60 typedef std::vector< ActivityAppConfigParam > ActivityAppConfigParamsType;
68 ActivityAppConfigParamsType parameters;
89 typedef std::vector< ActivityRequirementKey > KeyType;
177 typedef std::vector< ActivityRequirement > RequirementsType;
178 typedef std::pair<unsigned int, unsigned int> MinMaxType;
179 typedef std::map< std::string, MinMaxType > RequirementsMinMaxCount;
180 typedef std::map< std::string, unsigned int > DataCountType;
188 FWACTIVITIES_API
bool usableWith(DataCountType dataCount)
const;
192 std::string description;
195 RequirementsType requirements;
196 std::string builderImpl;
207 RequirementsMinMaxCount m_requirementCount;
220 typedef std::vector< ActivityInfo > ActivitiesType;
225 FWACTIVITIES_API
static Activities::sptr getDefault();
236 FWACTIVITIES_API
void parseBundleInformation();
244 FWACTIVITIES_API
const ActivityInfo getInfo(
const std::string& extensionId )
const;
250 FWACTIVITIES_API
bool hasInfo(
const std::string& extensionId )
const;
255 FWACTIVITIES_API ActivityInfo::DataCountType getDataCount(
const CSPTR(::
fwData::Vector)& data )
const;
261 FWACTIVITIES_API ActivitiesType getInfos()
const;
273 FWACTIVITIES_API std::vector< std::string > getKeys()
const;
279 FWACTIVITIES_API
void clearRegistry();
283 typedef std::map< std::string, ActivityInfo > Registry;
std::string description
data container if maxOccurs > 1 ("vector" or "composite", default: "composite")
mutable::fwCore::mt::ReadWriteMutex m_registryMutex
Used to protect the registry access.
Contains fwAtomsFilter::registry details.
Base class for all FW4SPL's classes.
Holds Activities configuration.
Defines the extension class.
unsigned int maxOccurs
minimum number of data required
Registry m_reg
Container of parameter information.
std::string bundleVersion
Version of the bundle containing the activity.
std::string validator
parameter description
std::string type
parameter name
std::string bundleId
Identifier of the bundle containing the activity.
This class defines a vector of objects.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
KeyType keys
True if the data must be created if it is not present (only if minOccurs = 0 and maxOccurs = 1) ...
unsigned int minOccurs
Implementation of data validator.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
This class allows to register all the configuration parameters which has the point extension "::activ...
static Activities::sptr s_activities
The global instance of the app config parameters.
std::string container
parameter type (ie. fwMedData::ImageSeries)
Namespace containing activities data and builder.
Contains the representation of the data objects used in the framework.
std::vector< std::string > validatorsImpl
Validator implementations.
bool create
maximum number of data required