00001
00006 #ifndef __BGDNetContext_h__
00007 #define __BGDNetContext_h__
00008
00009 #include "BGDNetConfig.h"
00010
00011 #include <nwnet.h>
00012 #include "BGDNetException.h"
00013 #include "BGDNetString.h"
00014
00015 namespace BGDNet
00016 {
00017
00024 class BGDNET_API Context
00025 {
00026 public:
00027
00028 Context( void )
00029 throw(Exception);
00034 explicit Context( const char* ctxName )
00035 throw(Exception);
00041 Context( const Context& ctx )
00042 throw(Exception);
00047 ~Context( void );
00052 operator NWDSContextHandle( void ) const;
00057 void name( const char* name );
00063 String name( void ) const;
00069 void dsiFlags( nuint32 flags );
00078 nuint32 dsiFlags( void ) const;
00086 void dckFlags( nuint32 flags );
00094 nuint32 dckFlags( void ) const;
00101 String dn( const char* name ) const;
00108 String rdn( const char* name ) const;
00115 private:
00116
00117 Context& operator =( const Context& );
00122 void create( void );
00127 NWDSContextHandle m_handle;
00131 };
00132
00133 }
00134
00135 #endif //__BGDNetContext_h__