"Fossies" - the Fresh Open Source Software Archive

Member "ldapexplorertool-2.0.1/src/schema.h" (15 Oct 2006, 1828 Bytes) of package /linux/privat/old/ldapexplorertool-2.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "schema.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef _LETSCHEMA_H
    2 #define _LETSCHEMA_H
    3 
    4 #include <vector>
    5 #include <map>
    6 #include <ldap.h>
    7 #include <ldap_schema.h>
    8 #include "ldapclass.h"
    9 
   10 WX_DECLARE_STRING_HASH_MAP( wxString, StringMap );
   11 
   12 
   13 class SchemaUtil: public LdapClass
   14 {
   15     public:
   16         SchemaUtil();
   17         ~SchemaUtil();
   18         bool                HasSchema( void );
   19         void                SetConfig( const wxString& p_Name );
   20         int                 GetSchema( const wxString& p_BaseDN );
   21         int                 GetObjectClasses( wxArrayString& p_Array );
   22         int                 GetAttributeTypes( wxArrayString& p_Array );
   23         int                 GetSyntaxes( wxArrayString& p_Array );
   24         LDAPObjectClass*    FindObjectClass( const wxString& p_Name );
   25         LDAPObjectClass*    FindObjectClassByOID( const wxString& p_Oid );
   26 
   27         int                 GetMUSTAttributeTypes( const wxString& p_ObjectClass, wxArrayString& p_Array );
   28         int                 GetMAYAttributeTypes( const wxString& p_ObjectClass, wxArrayString& p_Array );
   29         LDAPAttributeType*  GetAttributeTypeByOID( const wxString& p_OID );
   30         LDAPAttributeType*  GetAttributeTypeByName( const wxString& p_OID );
   31         LDAPSyntax*         GetSyntaxByOID( const wxString& p_OID );
   32         LDAPSyntax*         GetSyntaxByName( const wxString& p_Name );
   33         bool                IsBinaryAttribute( const wxString& p_Name );
   34         void                GuessBinary( bool p_Guess );
   35         bool                ReplaceAttributeType( LDAPAttributeType* p_New );
   36         bool                AddAttributeType( LDAPAttributeType* p_New );
   37     private:
   38         int FindSchemaEntry( const wxString& p_BaseDN );
   39         void Close( void );
   40 
   41         int         m_SearchId ;
   42         wxString    m_ConfigName;
   43         bool        m_HasSchema ;
   44         bool        m_GuessBinary ;
   45         std::vector< LDAPAttributeType* >   m_AttributeTypes ;
   46         std::vector< LDAPObjectClass* >     m_ObjectClasses ;
   47         std::vector< LDAPSyntax* >          m_Syntaxes ;
   48         wxArrayString                       m_BinarySyntaxes ;
   49         StringMap                           m_BinaryExtensions;
   50         long                                m_CheckAttDescription;
   51         long                                m_CheckAttExtension;
   52 };
   53 
   54 #endif