CMS 3D CMS Logo

generic.h File Reference

#include <map>
#include <string>

Go to the source code of this file.

Defines

#define _generic_h_

Functions

std::string get_from_multimap (std::multimap< string, string > &mymap, std::string key)


Define Documentation

#define _generic_h_

Definition at line 2 of file generic.h.


Function Documentation

std::string get_from_multimap ( std::multimap< string, string > &  mymap,
std::string  key 
)

Definition at line 7 of file generic.h.

References it.

00008 {
00009   std::multimap<std::string, std::string>::iterator it;
00010   it = mymap.find(key);
00011   if (it != mymap.end())
00012     {
00013       return (it->second);
00014     }
00015   return "";
00016 }


Generated on Tue Jun 9 17:52:45 2009 for CMSSW by  doxygen 1.5.4