Back to index

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

#include <GenericAttribute.h>

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

List of all members.

Public Member Functions

 GenericAttribute ()
 GenericAttribute (const std::string &v, const std::string &i)
virtual ~GenericAttribute ()
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>
void setType (const std::string &new_type)

Static Public Member Functions

static const std::string & getIdentifier (void)

Private Attributes

std::string value
std::string type
std::string id

Static Private Attributes

static std::string identifier

Detailed Description

Definition at line 7 of file GenericAttribute.h.


Constructor & Destructor Documentation

Definition at line 15 of file GenericAttribute.h.

{ };
ArcSec::GenericAttribute::GenericAttribute ( const std::string &  v,
const std::string &  i 
) [inline]

Definition at line 16 of file GenericAttribute.h.

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

Definition at line 17 of file GenericAttribute.h.

{ };

Member Function Documentation

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

encode the value in a string format

Implements ArcSec::AttributeValue.

Definition at line 20 of file GenericAttribute.h.

{ return value; };

Here is the caller graph for this function:

bool ArcSec::GenericAttribute::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 GenericAttribute.cpp.

                                                            {
  if(!o) return false;
  if(check_id) {
    if( (getType() == (o->getType())) && 
        (getId() == (o->getId())) &&
        (encode() == (o->encode())) ) return true;
  }
  else {
    if( (getType() == (o->getType())) &&
        (encode() == (o->encode())) ) return true;
  }
  return false;
}

Here is the call graph for this function:

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

Get the AttributeId of the <Attribute>

Implements ArcSec::AttributeValue.

Definition at line 23 of file GenericAttribute.h.

{ return id; };

Here is the caller graph for this function:

static const std::string& ArcSec::GenericAttribute::getIdentifier ( void  ) [inline, static]

Definition at line 25 of file GenericAttribute.h.

{ return identifier; };
virtual std::string ArcSec::GenericAttribute::getType ( ) [inline, virtual]

Get the DataType of the <Attribute>

Implements ArcSec::AttributeValue.

Definition at line 22 of file GenericAttribute.h.

{ return type; };

Here is the caller graph for this function:

std::string ArcSec::GenericAttribute::getValue ( ) [inline]

Definition at line 21 of file GenericAttribute.h.

{ return value; };
void ArcSec::GenericAttribute::setType ( const std::string &  new_type) [inline]

Definition at line 24 of file GenericAttribute.h.

{ type=new_type; };

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 11 of file GenericAttribute.h.

std::string ArcSec::GenericAttribute::identifier [static, private]

Definition at line 12 of file GenericAttribute.h.

std::string ArcSec::GenericAttribute::type [private]

Definition at line 10 of file GenericAttribute.h.

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

Definition at line 9 of file GenericAttribute.h.


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