Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes
ArcSec::X500NameAttribute Class Reference

#include <X500NameAttribute.h>

Inheritance diagram for ArcSec::X500NameAttribute:
Inheritance graph
[legend]
Collaboration diagram for ArcSec::X500NameAttribute:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 X500NameAttribute ()
 X500NameAttribute (std::string v, std::string i)
virtual ~X500NameAttribute ()
virtual bool equal (AttributeValue *other, bool check_id=true)
 Evluate whether "this" equale to the parameter value.
virtual std::string encode ()
 encode the value in a string format
std::string getValue ()
virtual std::string getType ()
 Get the DataType of the <Attribute>
virtual std::string getId ()
 Get the AttributeId of the <Attribute>

Static Public Member Functions

static const std::string & getIdentifier (void)

Private Attributes

std::string value
std::string id

Static Private Attributes

static std::string identifier = "x500Name"

Detailed Description

Definition at line 7 of file X500NameAttribute.h.


Constructor & Destructor Documentation

Definition at line 14 of file X500NameAttribute.h.

{ };
ArcSec::X500NameAttribute::X500NameAttribute ( std::string  v,
std::string  i 
) [inline]

Definition at line 15 of file X500NameAttribute.h.

: value(v), id(i) { };
virtual ArcSec::X500NameAttribute::~X500NameAttribute ( ) [inline, virtual]

Definition at line 16 of file X500NameAttribute.h.

{ };

Member Function Documentation

virtual std::string ArcSec::X500NameAttribute::encode ( ) [inline, virtual]

encode the value in a string format

Implements ArcSec::AttributeValue.

Definition at line 19 of file X500NameAttribute.h.

{return value;};
bool ArcSec::X500NameAttribute::equal ( AttributeValue value,
bool  check_id = true 
) [virtual]

Evluate whether "this" equale to the parameter value.

Implements ArcSec::AttributeValue.

Definition at line 12 of file X500NameAttribute.cpp.

                                                             {
  X500NameAttribute *other;
  try{
    other = dynamic_cast<X500NameAttribute*>(o);
  } catch(std::exception&) { };
  if(other==NULL){
    //std::cerr<<"not X500NameAttribute"<<std::endl;
    return false;
  }
  if(check_id) { if(id != other->id) return false; }
  if((value.compare(other->getValue()))==0)  //Now, deal with it the same as StringAttribute.  
    return true;
  else 
    return false;
}

Here is the call graph for this function:

virtual std::string ArcSec::X500NameAttribute::getId ( ) [inline, virtual]

Get the AttributeId of the <Attribute>

Implements ArcSec::AttributeValue.

Definition at line 22 of file X500NameAttribute.h.

{ return id; };
static const std::string& ArcSec::X500NameAttribute::getIdentifier ( void  ) [inline, static]

Definition at line 23 of file X500NameAttribute.h.

{ return identifier; };

Here is the caller graph for this function:

virtual std::string ArcSec::X500NameAttribute::getType ( ) [inline, virtual]

Get the DataType of the <Attribute>

Implements ArcSec::AttributeValue.

Definition at line 21 of file X500NameAttribute.h.

{return identifier; };
std::string ArcSec::X500NameAttribute::getValue ( ) [inline]

Definition at line 20 of file X500NameAttribute.h.

{ return value; };

Here is the caller graph for this function:


Member Data Documentation

std::string ArcSec::X500NameAttribute::id [private]

Definition at line 11 of file X500NameAttribute.h.

std::string ArcSec::X500NameAttribute::identifier = "x500Name" [static, private]

Definition at line 9 of file X500NameAttribute.h.

std::string ArcSec::X500NameAttribute::value [private]

Definition at line 10 of file X500NameAttribute.h.


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