Back to index

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

Formate: *P??Y??M??DT??H??M??S. More...

#include <DateTimeAttribute.h>

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

List of all members.

Public Member Functions

 DurationAttribute ()
 DurationAttribute (const std::string &v, const std::string &i)
virtual ~DurationAttribute ()
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
Arc::Period 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

Arc::Period value
std::string id

Static Private Attributes

static std::string identifier = "duration"

Detailed Description

Formate: *P??Y??M??DT??H??M??S.

Definition at line 96 of file DateTimeAttribute.h.


Constructor & Destructor Documentation

Definition at line 103 of file DateTimeAttribute.h.

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

Definition at line 104 of file DateTimeAttribute.h.

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

Definition at line 105 of file DateTimeAttribute.h.

{ };

Member Function Documentation

std::string ArcSec::DurationAttribute::encode ( ) [virtual]

encode the value in a string format

Implements ArcSec::AttributeValue.

Definition at line 183 of file DateTimeAttribute.cpp.

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

Evluate whether "this" equale to the parameter value.

Implements ArcSec::AttributeValue.

Definition at line 167 of file DateTimeAttribute.cpp.

                                                             {
  DurationAttribute *other;
  try{
    other = dynamic_cast<DurationAttribute*>(o);
  } catch(std::exception&) { };
  if(other==NULL){
    //std::cerr<<"not DurationAttribute"<<std::endl;
    return false;
  }
  if(check_id) { if(id != other->id) return false; }
  if((value.GetPeriod())==((other->getValue()).GetPeriod()))
    return true;
  else
    return false;
}

Here is the call graph for this function:

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

Get the AttributeId of the <Attribute>

Implements ArcSec::AttributeValue.

Definition at line 111 of file DateTimeAttribute.h.

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

Definition at line 112 of file DateTimeAttribute.h.

{ return identifier; };

Here is the caller graph for this function:

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

Get the DataType of the <Attribute>

Implements ArcSec::AttributeValue.

Definition at line 110 of file DateTimeAttribute.h.

{return identifier;};

Definition at line 109 of file DateTimeAttribute.h.

{ return value; };

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 100 of file DateTimeAttribute.h.

std::string ArcSec::DurationAttribute::identifier = "duration" [static, private]

Definition at line 98 of file DateTimeAttribute.h.

Definition at line 99 of file DateTimeAttribute.h.


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