CMS 3D CMS Logo

Defines | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DQM/TrackerCommon/src/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.

Referenced by WebInterface::Configure(), WebInterface::ContentsOpen(), WebInterface::DrawGif(), WebInterface::handleStandardRequest(), and WebInterface::Open().

{
  std::multimap<std::string, std::string>::iterator it;
  it = mymap.find(key);
  if (it != mymap.end())
    {
      return (it->second);
    }
  return "";
}