Back to index

nordugrid-arc-nox  1.1.0~rc6
GenericAttribute.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 "GenericAttribute.h"
00007 
00008 namespace ArcSec {
00009 
00010 std::string GenericAttribute::identifier("");
00011 
00012 bool GenericAttribute::equal(AttributeValue* o, bool check_id){
00013   if(!o) return false;
00014   if(check_id) {
00015     if( (getType() == (o->getType())) && 
00016         (getId() == (o->getId())) &&
00017         (encode() == (o->encode())) ) return true;
00018   }
00019   else {
00020     if( (getType() == (o->getType())) &&
00021         (encode() == (o->encode())) ) return true;
00022   }
00023   return false;
00024 }
00025 
00026 } //namespace ArcSec