ldapsdk  0.0.1
LDAPAttrType.h
Go to the documentation of this file.
1 // $OpenLDAP$
2 /*
3  * Copyright 2003-2013 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6 
7 #ifndef LDAP_ATTRTYPE_H
8 #define LDAP_ATTRTYPE_H
9 
10 #include <ldap_schema.h>
11 #include <string>
12 
13 #include "StringList.h"
14 
15 using namespace std;
16 
21  private :
22  StringList names;
23  std::string desc, oid, superiorOid, equalityOid;
24  std::string orderingOid, substringOid, syntaxOid;
25  bool single;
26  int usage;
27 
28  public :
29 
33  LDAPAttrType();
34 
43  LDAPAttrType (string at_item, int flags = LDAP_SCHEMA_ALLOW_NO_OID |
44  LDAP_SCHEMA_ALLOW_QUOTED );
45 
49  virtual ~LDAPAttrType();
50 
51 
55  string getDesc() const;
56 
60  string getOid() const;
61 
65  string getName() const;
66 
70  StringList getNames() const;
71 
75  bool isSingle() const;
76 
82  int getUsage () const;
83  std::string getSuperiorOid() const;
84  std::string getEqualityOid() const;
85  std::string getOrderingOid() const;
86  std::string getSubstringOid() const;
87  std::string getSyntaxOid() const;
88 
89  void setNames( char **at_names);
90  void setDesc(const char *at_desc);
91  void setOid(const char *at_oid);
92  void setSingle(int at_single_value);
93  void setUsage(int at_usage );
94  void setSuperiorOid( const char *oid );
95  void setEqualityOid( const char *oid );
96  void setOrderingOid( const char *oid );
97  void setSubstringOid( const char *oid );
98  void setSyntaxOid( const char *oid );
99 };
100 
101 #endif // LDAP_ATTRTYPE_H
Represents the Attribute Type (from LDAP schema)
Definition: LDAPAttrType.h:20
Container class to store multiple string-objects.
Definition: StringList.h:15