ldapsdk  0.0.1
Public Member Functions | List of all members
LDAPAttrType Class Reference

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

#include <LDAPAttrType.h>

Public Member Functions

 LDAPAttrType ()
 Constructor. More...
 
 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. More...
 
virtual ~LDAPAttrType ()
 Destructor. More...
 
string getDesc () const
 Returns attribute description. More...
 
string getOid () const
 Returns attribute oid. More...
 
string getName () const
 Returns attribute name (first one if there are more of them) More...
 
StringList getNames () const
 Returns all attribute names. More...
 
bool isSingle () const
 Returns true if attribute type allows only single value. More...
 
int getUsage () const
 Return the 'usage' value: (0=userApplications, 1=directoryOperation, 2=distributedOperation, 3=dSAOperation) More...
 
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() [1/2]

LDAPAttrType::LDAPAttrType ( )

Constructor.

References DEBUG, and LDAP_DEBUG_CONSTRUCT.

◆ LDAPAttrType() [2/2]

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::~LDAPAttrType ( )
virtual

Destructor.

References DEBUG, and LDAP_DEBUG_DESTROY.

Member Function Documentation

◆ getDesc()

string LDAPAttrType::getDesc ( ) const

Returns attribute description.

◆ getEqualityOid()

std::string LDAPAttrType::getEqualityOid ( ) const

◆ getName()

string LDAPAttrType::getName ( ) const

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

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

◆ getNames()

StringList LDAPAttrType::getNames ( ) const

Returns all attribute names.

Referenced by LDAPSchema::setAttributeTypes().

◆ getOid()

string LDAPAttrType::getOid ( ) const

Returns attribute oid.

◆ getOrderingOid()

std::string LDAPAttrType::getOrderingOid ( ) const

◆ getSubstringOid()

std::string LDAPAttrType::getSubstringOid ( ) const

◆ getSuperiorOid()

std::string LDAPAttrType::getSuperiorOid ( ) const

◆ getSyntaxOid()

std::string LDAPAttrType::getSyntaxOid ( ) const

◆ getUsage()

int LDAPAttrType::getUsage ( ) const

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

◆ isSingle()

bool LDAPAttrType::isSingle ( ) const

Returns true if attribute type allows only single value.

◆ setDesc()

void LDAPAttrType::setDesc ( const char *  at_desc)

Referenced by LDAPAttrType().

◆ setEqualityOid()

void LDAPAttrType::setEqualityOid ( const char *  oid)

Referenced by LDAPAttrType().

◆ setNames()

void LDAPAttrType::setNames ( char **  at_names)

Referenced by LDAPAttrType().

◆ setOid()

void LDAPAttrType::setOid ( const char *  at_oid)

Referenced by LDAPAttrType().

◆ setOrderingOid()

void LDAPAttrType::setOrderingOid ( const char *  oid)

Referenced by LDAPAttrType().

◆ setSingle()

void LDAPAttrType::setSingle ( int  at_single_value)

Referenced by LDAPAttrType().

◆ setSubstringOid()

void LDAPAttrType::setSubstringOid ( const char *  oid)

Referenced by LDAPAttrType().

◆ setSuperiorOid()

void LDAPAttrType::setSuperiorOid ( const char *  oid)

Referenced by LDAPAttrType().

◆ setSyntaxOid()

void LDAPAttrType::setSyntaxOid ( const char *  oid)

Referenced by LDAPAttrType().

◆ setUsage()

void LDAPAttrType::setUsage ( int  at_usage)

Referenced by LDAPAttrType().


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