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

📄 soap_subcode.hpp

📁 ncbi源码
💻 HPP
字号:
/* * =========================================================================== * PRODUCTION $Log: soap_subcode.hpp,v $ * PRODUCTION Revision 1000.0  2003/10/29 17:39:31  gouriano * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.1 * PRODUCTION * =========================================================================== *//* $Id: soap_subcode.hpp,v 1000.0 2003/10/29 17:39:31 gouriano Exp $ * =========================================================================== * *                            PUBLIC DOMAIN NOTICE *               National Center for Biotechnology Information * *  This software/database is a "United States Government Work" under the *  terms of the United States Copyright Act.  It was written as part of *  the author's official duties as a United States Government employee and *  thus cannot be copyrighted.  This software/database is freely available *  to the public for use. The National Library of Medicine and the U.S. *  Government have not placed any restriction on its use or reproduction. * *  Although all reasonable efforts have been taken to ensure the accuracy *  and reliability of the software and data, the NLM and the U.S. *  Government do not and cannot warrant the performance or results that *  may be obtained by using this software or data. The NLM and the U.S. *  Government disclaim all warranties, express or implied, including *  warranties of performance, merchantability or fitness for any particular *  purpose. * *  Please cite the author in any work or product based on this material. * * =========================================================================== * * Author: Andrei Gourianov * * File Description: *   SOAP Subcode object * * =========================================================================== */#ifndef SOAP_SUBCODE_HPP#define SOAP_SUBCODE_HPP// standard includes#include <serial/serialbase.hpp>// generated includes#include <string>BEGIN_NCBI_SCOPE// forward declarations//class CSoapSubcode;// generated classesclass CSoapSubcode : public CSerialObject{    typedef CSerialObject Tparent;public:    // constructor    CSoapSubcode(void);    // destructor    virtual ~CSoapSubcode(void);    // type info    DECLARE_INTERNAL_TYPE_INFO();    // types    typedef std::string TSoapValue;    typedef CSoapSubcode TSoapSubcode;    // getters    // setters    // mandatory    // typedef std::string TSoapValue    bool IsSetSoapValue(void) const;    bool CanGetSoapValue(void) const;    void ResetSoapValue(void);    const TSoapValue& GetSoapValue(void) const;    void SetSoapValue(const TSoapValue& value);    TSoapValue& SetSoapValue(void);    // optional    // typedef CSoapSubcode TSoapSubcode    bool IsSetSoapSubcode(void) const;    bool CanGetSoapSubcode(void) const;    void ResetSoapSubcode(void);    const TSoapSubcode& GetSoapSubcode(void) const;    void SetSoapSubcode(TSoapSubcode& value);    TSoapSubcode& SetSoapSubcode(void);    // reset whole object    virtual void Reset(void);private:    // Prohibit copy constructor and assignment operator    CSoapSubcode(const CSoapSubcode&);    CSoapSubcode& operator=(const CSoapSubcode&);    // data    Uint4 m_set_State[1];    TSoapValue m_SoapValue;    CRef< TSoapSubcode > m_SoapSubcode;};//////////////////////////////////////////////////////////////////////////////// inline methods /////////////////////////////////////////////////////////////////////////////////inlinebool CSoapSubcode::IsSetSoapValue(void) const{    return ((m_set_State[0] & 0x3) != 0);}inlinebool CSoapSubcode::CanGetSoapValue(void) const{    return IsSetSoapValue();}inlineconst std::string& CSoapSubcode::GetSoapValue(void) const{    if (!CanGetSoapValue()) {        ThrowUnassigned(0);    }    return m_SoapValue;}inlinevoid CSoapSubcode::SetSoapValue(const std::string& value){    m_SoapValue = value;    m_set_State[0] |= 0x3;}inlinestd::string& CSoapSubcode::SetSoapValue(void){#ifdef _DEBUG    if (!IsSetSoapValue()) {        m_SoapValue = ms_UnassignedStr;    }#endif    m_set_State[0] |= 0x1;    return m_SoapValue;}inlinebool CSoapSubcode::IsSetSoapSubcode(void) const{    return m_SoapSubcode;}inlinebool CSoapSubcode::CanGetSoapSubcode(void) const{    return IsSetSoapSubcode();}inlineconst CSoapSubcode& CSoapSubcode::GetSoapSubcode(void) const{    if (!CanGetSoapSubcode()) {        ThrowUnassigned(1);    }    return (*m_SoapSubcode);}///////////////////////////////////////////////////////////////////////////// end of inline methods /////////////////////////////////////////////////////////////////////////////END_NCBI_SCOPE#endif // SOAP_SUBCODE_HPP/* --------------------------------------------------------------------------* $Log: soap_subcode.hpp,v $* Revision 1000.0  2003/10/29 17:39:31  gouriano* PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.1** Revision 1.1  2003/09/25 19:46:21  gouriano* Added soap Fault object*** ===========================================================================*/

⌨️ 快捷键说明

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