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

edg::workload::common::ldif2classad::LDIFObject Class Reference

An LDIF Object. More...

List of all members.

Public Methods

 LDIFObject ()
 Empty Constructor. More...

 LDIFObject (const LDIFObject &)
 Constructor. More...

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

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

bool EvaluateAttribute (const std::string &, std::vector< std::string > &) const
 Evaluates an attribute. More...

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


Friends

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


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 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.

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.

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 Fri May 14 14:18:26 2004 for COMMON API - configuration, jobid, ldif2classadi, logger, process, requestad, socket++i, task, utilities by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002