ldapsdk 0.0.1
Public Member Functions

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)

Detailed Description

Represents the Attribute Type (from LDAP schema)


Constructor & Destructor Documentation

LDAPAttrType::LDAPAttrType ( )

Constructor.

References DEBUG, LDAP_DEBUG_CONSTRUCT, and string.

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

std::string LDAPAttrType::getEqualityOid ( ) const
string LDAPAttrType::getName ( ) const

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

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

StringList LDAPAttrType::getNames ( ) const

Returns all attribute names.

Referenced by LDAPSchema::setAttributeTypes().

string LDAPAttrType::getOid ( ) const

Returns attribute oid.

std::string LDAPAttrType::getOrderingOid ( ) const
std::string LDAPAttrType::getSubstringOid ( ) const
std::string LDAPAttrType::getSuperiorOid ( ) const
std::string LDAPAttrType::getSyntaxOid ( ) const
int LDAPAttrType::getUsage ( ) const

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

bool LDAPAttrType::isSingle ( ) const

Returns true if attribute type allows only single value.

void LDAPAttrType::setDesc ( const char *  at_desc)

References string.

Referenced by LDAPAttrType().

void LDAPAttrType::setEqualityOid ( const char *  oid)

Referenced by LDAPAttrType().

void LDAPAttrType::setNames ( char **  at_names)

Referenced by LDAPAttrType().

void LDAPAttrType::setOid ( const char *  at_oid)

References string.

Referenced by LDAPAttrType().

void LDAPAttrType::setOrderingOid ( const char *  oid)

Referenced by LDAPAttrType().

void LDAPAttrType::setSingle ( int  at_single_value)

Referenced by LDAPAttrType().

void LDAPAttrType::setSubstringOid ( const char *  oid)

Referenced by LDAPAttrType().

void LDAPAttrType::setSuperiorOid ( const char *  oid)

Referenced by LDAPAttrType().

void LDAPAttrType::setSyntaxOid ( const char *  oid)

Referenced by LDAPAttrType().

void LDAPAttrType::setUsage ( int  at_usage)

Referenced by LDAPAttrType().


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