1 #ifndef __XIOS_CTransformation__
2 #define __XIOS_CTransformation__
35 typedef std::map<ETranformationType, CreateTransformationCallBack>
CallBackMap;
42 virtual std::vector<StdString>
checkAuxInputs_() {
return std::vector<StdString>(); }
46 typename CTransformation<T>::CallBackMap* CTransformation<T>::transformationCreationCallBacks_ = 0;
51 int transTypeInt = transType;
52 typename CallBackMap::const_iterator it = (*transformationCreationCallBacks_).find(transType);
53 if ((*transformationCreationCallBacks_).end() == it)
55 ERROR(
"CTransformation<T>::createTransformation(ETranformationType transType)",
56 <<
"Transformation type " << transType
57 <<
"doesn't exist. Please define.");
59 return (it->second)(id,node);
65 if (0 == transformationCreationCallBacks_)
66 transformationCreationCallBacks_ =
new CallBackMap();
68 return (*transformationCreationCallBacks_).insert(make_pair(transType, createFn)).second;
74 int transTypeInt = transType;
75 return (1 == (*transformationCreationCallBacks_).erase(transType));
80 #endif // __XIOS_CTransformation__
enum xios::transformation_type ETranformationType
////////////////////// Définitions ////////////////////// ///
CATCH CScalarAlgorithmReduceScalar::CScalarAlgorithmReduceScalar(CScalar *scalarDestination, CScalar *scalarSource, CReduceScalarToScalar *algo ERROR)("CScalarAlgorithmReduceScalar::CScalarAlgorithmReduceScalar(CScalar* scalarDestination, CScalar* scalarSource, CReduceScalarToScalar* algo)",<< "Operation must be defined."<< "Scalar source "<< scalarSource->getId()<< std::endl<< "Scalar destination "<< scalarDestination->getId())