LDAPAttrType Class Reference

Represents the Attribute Type (from LDAP schema). More...

#include <LDAPAttrType.h>

List of all members.

Public Member Functions

 LDAPAttrType ()
 Constructor.
 LDAPAttrType (string at_item, int flags=LDAP_SCHEMA_ALLOW_NO_OID|LDAP_SCHEMA_ALLOW_QUOTED)
 Constructs new object and fills the data structure by parsing the argument.
virtual ~LDAPAttrType ()
 Destructor.
string getDesc () const
 Returns attribute description.
string getOid () const
 Returns attribute oid.
string getName () const
 Returns attribute name (first one if there are more of them).
StringList getNames () const
 Returns all attribute names.
bool isSingle () const
 Returns true if attribute type allows only single value.
int getUsage () const
 Return the 'usage' value: (0=userApplications, 1=directoryOperation, 2=distributedOperation, 3=dSAOperation).
std::string getSuperiorOid () const
std::string getEqualityOid () const
std::string getOrderingOid () const
std::string getSubstringOid () const
std::string getSyntaxOid () const
void setNames (char **at_names)
void setDesc (const char *at_desc)
void setOid (const char *at_oid)
void setSingle (int at_single_value)
void setUsage (int at_usage)
void setSuperiorOid (const char *oid)
void setEqualityOid (const char *oid)
void setOrderingOid (const char *oid)
void setSubstringOid (const char *oid)
void setSyntaxOid (const char *oid)

Private Attributes

StringList names
std::string desc
std::string oid
std::string superiorOid
std::string equalityOid
std::string orderingOid
std::string substringOid
std::string syntaxOid
bool single
int usage


Detailed Description

Represents the Attribute Type (from LDAP schema).

Constructor & Destructor Documentation

LDAPAttrType::LDAPAttrType (  ) 

Constructor.

References DEBUG, desc, LDAP_DEBUG_CONSTRUCT, names, oid, single, and usage.

LDAPAttrType::LDAPAttrType ( string  at_item,
int  flags = LDAP_SCHEMA_ALLOW_NO_OID | LDAP_SCHEMA_ALLOW_QUOTED 
)

Constructs new object and fills the data structure by parsing the argument.

Parameters:
at_item description of attribute type is string returned by the search command. It is in the form: "( SuSE.YaST.Attr:19 NAME ( 'skelDir' ) DESC '' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )"

References DEBUG, LDAP_DEBUG_CONSTRUCT, setDesc(), setEqualityOid(), setNames(), setOid(), setOrderingOid(), setSingle(), setSubstringOid(), setSuperiorOid(), setSyntaxOid(), and setUsage().

LDAPAttrType::~LDAPAttrType (  )  [virtual]

Destructor.

References DEBUG, and LDAP_DEBUG_DESTROY.


Member Function Documentation

string LDAPAttrType::getDesc (  )  const

Returns attribute description.

References desc.

std::string LDAPAttrType::getEqualityOid (  )  const

References equalityOid.

string LDAPAttrType::getName (  )  const

Returns attribute name (first one if there are more of them).

References StringList::begin(), StringList::empty(), and names.

StringList LDAPAttrType::getNames (  )  const

Returns all attribute names.

References names.

Referenced by LDAPSchema::setAttributeTypes().

string LDAPAttrType::getOid (  )  const

Returns attribute oid.

References oid.

std::string LDAPAttrType::getOrderingOid (  )  const

References orderingOid.

std::string LDAPAttrType::getSubstringOid (  )  const

References substringOid.

std::string LDAPAttrType::getSuperiorOid (  )  const

References superiorOid.

std::string LDAPAttrType::getSyntaxOid (  )  const

References syntaxOid.

int LDAPAttrType::getUsage (  )  const

Return the 'usage' value: (0=userApplications, 1=directoryOperation, 2=distributedOperation, 3=dSAOperation).

References usage.

bool LDAPAttrType::isSingle (  )  const

Returns true if attribute type allows only single value.

References single.

void LDAPAttrType::setDesc ( const char *  at_desc  ) 

References desc.

Referenced by LDAPAttrType().

void LDAPAttrType::setEqualityOid ( const char *  oid  ) 

References equalityOid.

Referenced by LDAPAttrType().

void LDAPAttrType::setNames ( char **  at_names  ) 

References names.

Referenced by LDAPAttrType().

void LDAPAttrType::setOid ( const char *  at_oid  ) 

References oid.

Referenced by LDAPAttrType().

void LDAPAttrType::setOrderingOid ( const char *  oid  ) 

References orderingOid.

Referenced by LDAPAttrType().

void LDAPAttrType::setSingle ( int  at_single_value  ) 

References single.

Referenced by LDAPAttrType().

void LDAPAttrType::setSubstringOid ( const char *  oid  ) 

References substringOid.

Referenced by LDAPAttrType().

void LDAPAttrType::setSuperiorOid ( const char *  oid  ) 

References superiorOid.

Referenced by LDAPAttrType().

void LDAPAttrType::setSyntaxOid ( const char *  oid  ) 

References syntaxOid.

Referenced by LDAPAttrType().

void LDAPAttrType::setUsage ( int  at_usage  ) 

References usage.

Referenced by LDAPAttrType().


Member Data Documentation

std::string LDAPAttrType::desc [private]

Referenced by getDesc(), LDAPAttrType(), and setDesc().

std::string LDAPAttrType::equalityOid [private]

Referenced by getEqualityOid(), and setEqualityOid().

std::string LDAPAttrType::oid [private]

Referenced by getOid(), LDAPAttrType(), and setOid().

std::string LDAPAttrType::orderingOid [private]

Referenced by getOrderingOid(), and setOrderingOid().

bool LDAPAttrType::single [private]

Referenced by isSingle(), LDAPAttrType(), and setSingle().

std::string LDAPAttrType::substringOid [private]

Referenced by getSubstringOid(), and setSubstringOid().

std::string LDAPAttrType::superiorOid [private]

Referenced by getSuperiorOid(), and setSuperiorOid().

std::string LDAPAttrType::syntaxOid [private]

Referenced by getSyntaxOid(), and setSyntaxOid().

int LDAPAttrType::usage [private]

Referenced by getUsage(), LDAPAttrType(), and setUsage().


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

doxygen