⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ldapmodification.cpp

📁 OpenLdap是LDAP的开源项目
💻 CPP
字号:
/* * Copyright 2000, OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */#include "LDAPModification.h"#include "debug.h"using namespace std;LDAPModification::LDAPModification(const LDAPAttribute& attr, mod_op op){    DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPModification::LDAPModification()" << endl);    DEBUG(LDAP_DEBUG_CONSTRUCT | LDAP_DEBUG_PARAMETER,            "   attr:" << attr << endl);    m_attr = attr;    m_mod_op = op;}LDAPMod* LDAPModification::toLDAPMod() const  {    DEBUG(LDAP_DEBUG_TRACE,"LDAPModification::toLDAPMod()" << endl);    LDAPMod* ret=m_attr.toLDAPMod();    //The mod_op value of the LDAPMod-struct needs to be ORed with the right    // LDAP_MOD_* constant to preserve the BIN-flag (see CAPI-draft for     // explanation of the LDAPMod struct)    switch (m_mod_op){	case OP_ADD :	    ret->mod_op |= LDAP_MOD_ADD;	break;	case OP_DELETE :	    ret->mod_op |= LDAP_MOD_DELETE;	break;	case OP_REPLACE :	    ret->mod_op |= LDAP_MOD_REPLACE;	break;    }    return ret;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -