3 #ifndef GAUDIALG_TUPLEPUT_H
4 #define GAUDIALG_TUPLEPUT_H 1
37 template <
class VALUE>
51 {
if ( 0 != ientry->second ) {
delete ientry->second ; } }
61 if (
m_map.
end() != ifound ) {
return ifound->second ; }
63 if ( 0 == tuple ) {
return 0 ; }
67 tuple -> Error (
"ItemStore::getItem('" + key
68 +
"') item name is not unique").ignore() ;
75 tuple -> Error (
"ItemStore::getItem('" + key
76 +
"') invalid NTuple::Tuple*" ).ignore() ;
85 tuple -> Error (
"ItemStore::getItem('" + key
86 +
"') cannot addItem" , sc ).ignore() ;
92 tuple -> Warning (
"ItemStore::getItem('" + key
93 +
"') the item not unique " ).ignore() ;
98 tuple -> Warning (
"ItemStore::getItem('" + key
99 +
"') item is not inserted!" ).ignore() ;
125 template <
class TYPE>
133 static bool s_fail = false ;
134 static TClass* s_type = 0 ;
139 s_type = TClass::GetClass(
typeid(TYPE));
152 {
return Error (
" put('" + name +
"'): invalid item detected",
InvalidItem ) ; }
154 (*item) =
const_cast<TYPE*
> ( obj ) ;
163 #endif // GAUDIALG_TUPLEPUT_H