00001 00009 #include "MatchesPolicy.h" 00010 #include "PolicyInformation.h" 00011 00019 MatchesPolicy::MatchesPolicy () 00020 { 00021 } 00029 MatchesPolicy::MatchesPolicy(const MatchesPolicy & ref) 00030 { 00031 m_policy = ref.m_policy; 00032 } 00033 00041 MatchesPolicy::~MatchesPolicy () 00042 { 00043 } 00044 00052 bool MatchesPolicy::operator()(const CPKIFPolicyInformationPtr& t) 00053 { 00054 return *t == *m_policy; 00055 } 00063 void MatchesPolicy::SetPolicyToMatch( 00065 CPKIFPolicyInformationPtr& policy) 00066 { 00067 m_policy = policy; 00068 }