1
// $OpenLDAP: pkg/ldap/contrib/ldapc++/src/LDAPAttrType.h,v 1.3.4.3 2008/05/01 21:28:42 quanah Exp $
2
3
* Copyright 2003, OpenLDAP Foundation, All Rights Reserved.
3
4
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
58
55
* Returns attribute description
57
string getDesc() const;
63
60
* Returns attribute oid
62
string getOid() const;
68
65
* Returns attribute name (first one if there are more of them)
67
string getName() const;
73
70
* Returns all attribute names
75
StringList getNames();
72
StringList getNames() const;
78
75
* Returns true if attribute type allows only single value
77
bool isSingle() const;
83
80
* Return the 'usage' value:
84
81
* (0=userApplications, 1=directoryOperation, 2=distributedOperation,
84
int getUsage () const;
85
std::string getSuperiorOid() const;
86
std::string getEqualityOid() const;
87
std::string getOrderingOid() const;
88
std::string getSubstringOid() const;
89
std::string getSyntaxOid() const;
89
void setNames (char **at_names);
90
void setDesc (char *at_desc);
91
void setOid (char *at_oid);
92
void setSingle (int at_single_value);
93
void setUsage (int at_usage );
91
void setNames( char **at_names);
92
void setDesc(const char *at_desc);
93
void setOid(const char *at_oid);
94
void setSingle(int at_single_value);
95
void setUsage(int at_usage );
96
void setSuperiorOid( const char *oid );
97
void setEqualityOid( const char *oid );
98
void setOrderingOid( const char *oid );
99
void setSubstringOid( const char *oid );
100
void setSyntaxOid( const char *oid );
96
103
#endif // LDAP_ATTRTYPE_H