Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

LDIFObject Class Reference

An LDIF Object. More...

List of all members.

Public Member Functions

 LDIFObject ()
 Empty Constructor.

 LDIFObject (classad::ClassAd *)
 LDIFObject (const LDIFObject &)
 Constructor.

LDIFObjectoperator= (const LDIFObject &o)
 Redefines '=' operator between LDIF Objects.

void add (const std::string &, const std::string &)
 Adds an attribute.

void merge (const LDIFObject &o)
bool EvaluateAttribute (const std::string &, std::vector< std::string > &) const
 Evaluates an attribute.

bool EvaluateAttribute (const std::string &, std::string &) const
 Evaluates an attribute set.

classad::ClassAd * asClassAd (void) const
classad::ClassAd * asClassAd (std::vector< std::string >::const_iterator b, std::vector< std::string >::const_iterator e) const

Friends

std::ostream & operator<< (std::ostream &, const LDIFObject &)
 Writes the LDIFObject to a stream.


Detailed Description

An LDIF Object.

Author:
Salvatore Monforte salvatore.monforte@ct.infn.it

comments by Marco Pappalardo marco.pappalardo@ct.infn.it and Salvatore Monforte


Constructor & Destructor Documentation

LDIFObject  ) 
 

Empty Constructor.

It does nothing.

LDIFObject classad::ClassAd *   ) 
 

LDIFObject const LDIFObject  ) 
 

Constructor.

Creates a new LDIF Object reusing attributes of an existing one.

Parameters:
o teh existing LDIF Object.


Member Function Documentation

void add const std::string &  ,
const std::string & 
 

Adds an attribute.

It pushes back the val attribute in the att item in attributes std::map.

Parameters:
att the attribute item.
the value to insert.

classad::ClassAd* asClassAd std::vector< std::string >::const_iterator  b,
std::vector< std::string >::const_iterator  e
const [inline]
 

classad::ClassAd* asClassAd void   )  const [inline]
 

bool EvaluateAttribute const std::string &  ,
std::string & 
const
 

Evaluates an attribute set.

If the std::string name exists in attribtues std::map, then all values are put in value std::vector.

Parameters:
name the attribute std::map item.
value the destination std::vector.
Returns:
true for sucessful evaluation, false otherwise.

bool EvaluateAttribute const std::string &  ,
std::vector< std::string > & 
const
 

Evaluates an attribute.

If the std::string name exists in attribtues std::map, then the front value is put in value string.

Parameters:
name the attribute std::map item.
value the destination std::string.
Returns:
true for sucessful evaluation, false otherwise.

void merge const LDIFObject o  ) 
 

LDIFObject& operator= const LDIFObject o  ) 
 

Redefines '=' operator between LDIF Objects.

It establishes that two LDIF object are the same if their attributes are the same.

Parameters:
o the LDIF Object to compare.


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  ,
const LDIFObject
[friend]
 

Writes the LDIFObject to a stream.

Serializes LDIF Object info into an output stream.

Parameters:
s the output stream.
o the LDIF Object.
Returns:
the written ostream.


The documentation for this class was generated from the following file:
Generated on Wed Mar 1 00:37:56 2006 for COMMON API - configuration, jobid, ldif2classadi, logger, process, requestad, socket++i, task, utilities by doxygen 1.3.5