metaproxy  1.13.0
Public Member Functions | Private Attributes | List of all members
metaproxy_1::filter::Multi::Map Class Reference
Collaboration diagram for metaproxy_1::filter::Multi::Map:
Collaboration graph

Public Member Functions

 Map (std::string pattern, std::string route, std::string auth)
bool match (const std::string target, std::string *ret, std::string *auth) const

Private Attributes

std::string m_target_pattern
std::string m_route
std::string m_auth

Detailed Description

Definition at line 116 of file filter_multi.cpp.

Constructor & Destructor Documentation

metaproxy_1::filter::Multi::Map::Map ( std::string  pattern,
std::string  route,
std::string  auth 

Definition at line 121 of file filter_multi.cpp.

121  :
122  m_target_pattern(pattern), m_route(route), m_auth(auth) {};

Member Function Documentation

bool metaproxy_1::filter::Multi::Map::match ( const std::string  target,
std::string *  ret,
std::string *  auth 
) const

Definition at line 123 of file filter_multi.cpp.

124  {
125  if (yaz_match_glob(m_target_pattern.c_str(), target.c_str()))
126  {
127  *ret = m_route;
128  *auth = m_auth;
129  return true;
130  }
131  return false;
132  };

Member Data Documentation

std::string metaproxy_1::filter::Multi::Map::m_auth

Definition at line 119 of file filter_multi.cpp.

std::string metaproxy_1::filter::Multi::Map::m_route

Definition at line 118 of file filter_multi.cpp.

std::string metaproxy_1::filter::Multi::Map::m_target_pattern

Definition at line 117 of file filter_multi.cpp.

The documentation for this class was generated from the following file: