6 using namespace EVENT ;
10 LCParametersImpl::LCParametersImpl(){
14 int LCParametersImpl::getIntVal(
const std::string & key)
const {
16 IntMap::iterator it = _intMap.find( key ) ;
18 if( it == _intMap.end() )
return 0 ;
25 float LCParametersImpl::getFloatVal(
const std::string & key)
const {
27 FloatMap::iterator it = _floatMap.find( key ) ;
29 if( it == _floatMap.end() )
return 0 ;
36 double LCParametersImpl::getDoubleVal(
const std::string & key)
const {
38 DoubleMap::iterator it = _doubleMap.find( key ) ;
40 if( it == _doubleMap.end() )
return 0 ;
51 StringMap::iterator it = _stringMap.find( key ) ;
53 if( it == _stringMap.end() )
return empty ;
62 IntMap::iterator it = _intMap.find( key ) ;
64 if( it != _intMap.end() ) {
65 values.
insert( values.
end() , it->second.begin() , it->second.end() ) ;
73 FloatMap::iterator it = _floatMap.find( key ) ;
75 if( it != _floatMap.end() ) {
76 values.
insert( values.
end() , it->second.begin() , it->second.end() ) ;
83 DoubleMap::iterator it = _doubleMap.find( key ) ;
85 if( it != _doubleMap.end() ) {
86 values.
insert( values.
end() , it->second.begin() , it->second.end() ) ;
93 StringMap::iterator it = _stringMap.find( key ) ;
95 if( it != _stringMap.end() ) {
96 values.
insert( values.
end() , it->second.
begin() , it->second.end() ) ;
104 for( IntMap::iterator iter = _intMap.begin() ; iter != _intMap.end() ; iter++ ){
115 for( FloatMap::iterator iter = _floatMap.begin() ; iter != _floatMap.end() ; iter++ ){
125 for( DoubleMap::iterator iter = _doubleMap.begin() ; iter != _doubleMap.end() ; iter++ ){
135 for( StringMap::iterator iter = _stringMap.begin() ; iter != _stringMap.end() ; iter++ ){
145 IntMap::iterator it = _intMap.find( key ) ;
147 if( it == _intMap.end() )
150 return it->second.
size() ;
155 FloatMap::iterator it = _floatMap.
find( key ) ;
157 if( it == _floatMap.end() )
160 return it->second.size() ;
165 DoubleMap::iterator it = _doubleMap.find( key ) ;
167 if( it == _doubleMap.end() )
170 return it->second.size() ;
175 StringMap::iterator it = _stringMap.find( key ) ;
177 if( it == _stringMap.end() )
180 return it->second.size() ;
183 void LCParametersImpl::setValue(
const std::string & key,
int value){
184 checkAccess(
"LCParametersImpl::setValue") ;
186 _intMap[ key ].clear() ;
187 _intMap[ key ].push_back( value ) ;
190 void LCParametersImpl::setValue(
const std::string & key,
float value){
191 checkAccess(
"LCParametersImpl::setValue") ;
193 _floatMap[ key ].clear() ;
194 _floatMap[ key ].push_back( value ) ;
197 void LCParametersImpl::setValue(
const std::string & key,
double value){
198 checkAccess(
"LCParametersImpl::setValue") ;
200 _doubleMap[ key ].clear() ;
201 _doubleMap[ key ].push_back( value ) ;
205 checkAccess(
"LCParametersImpl::setValue") ;
207 _stringMap[ key ].clear() ;
208 _stringMap[ key ].push_back( value ) ;
216 checkAccess(
"LCParametersImpl::setValues") ;
221 _intMap[ key ].assign( values.
begin() , values.
end() ) ;
226 checkAccess(
"LCParametersImpl::setValues") ;
231 _floatMap[ key ].assign( values.
begin() , values.
end() ) ;
236 checkAccess(
"LCParametersImpl::setValues") ;
241 _doubleMap[ key ].assign( values.
begin() , values.
end() ) ;
246 checkAccess(
"LCParametersImpl::setValues") ;
251 _stringMap[ key ].assign( values.
begin() , values.
end() ) ;