oid = string ();
desc = string ();
- equality = string ();
- syntax = string ();
names = StringList ();
single = false;
}
oid = at.oid;
desc = at.desc;
- equality = at.equality;
- syntax = at.syntax;
names = at.names;
single = at.single;
}
if (a) {
this->setNames (a->at_names);
this->setDesc (a->at_desc);
- this->setEquality (a->at_equality_oid);
- this->setSyntax (a->at_syntax_oid);
this->setOid (a->at_oid);
this->setSingle (a->at_single_value);
}
desc = at_desc;
}
-void LDAPAttrType::setEquality (char *at_equality_oid) {
- equality = string ();
- if (at_equality_oid) {
- equality = at_equality_oid;
- }
-}
-
-void LDAPAttrType::setSyntax (char *at_syntax_oid) {
- syntax = string ();
- if (at_syntax_oid) {
- syntax = at_syntax_oid;
- }
-}
-
void LDAPAttrType::setOid (char *at_oid) {
oid = string ();
if (at_oid)
return desc;
}
-string LDAPAttrType::getEquality () {
- return equality;
-}
-
-string LDAPAttrType::getSyntax () {
- return syntax;
-}
-
StringList LDAPAttrType::getNames () {
return names;
}
class LDAPAttrType{
private :
StringList names;
- string desc, oid, equality, syntax;
+ string desc, oid;
bool single;
public :
*/
string getOid ();
- /**
- * Returns equality matching rule
- */
- string getEquality ();
-
- /**
- * Returns attribute syntax definition
- */
- string getSyntax ();
-
/**
* Returns attribute name (first one if there are more of them)
*/
StringList getNames();
/**
- * Returns true if attribute type allows only single value
+ * Returns true if attribute type hllows only single value
*/
bool isSingle();
void setNames (char **at_names);
void setDesc (char *at_desc);
- void setEquality (char *at_equality_oid);
- void setSyntax (char *at_syntax_oid);
void setOid (char *at_oid);
void setSingle (int at_single_value);