Back to index

nordugrid-arc-nox  1.1.0~rc6
AnyURIAttribute.cpp
Go to the documentation of this file.
00001 #ifdef HAVE_CONFIG_H
00002 #include <config.h>
00003 #endif
00004 
00005 #include <iostream>
00006 #include "AnyURIAttribute.h"
00007 
00008 namespace ArcSec {
00009 
00010 std::string AnyURIAttribute::identifier = "anyURI";
00011 
00012 bool AnyURIAttribute::equal(AttributeValue* o, bool check_id){
00013   AnyURIAttribute *other;
00014   try{
00015     other = dynamic_cast<AnyURIAttribute*>(o);
00016   } catch(std::exception&) { };
00017   if(other==NULL){
00018     //std::cerr<<"not AnyURIAttribute"<<std::endl;
00019     return false;
00020   }
00021   if(check_id) { if(id != other->id) return false; }
00022   if((value.compare(other->getValue()))==0)  //Now, deal with it the same as StringAttribute.  
00023     return true;
00024   else 
00025     return false;
00026 }
00027 
00028 } //namespace ArcSec