📄 soap_detail.hpp
字号:
/* * =========================================================================== * PRODUCTION $Log: soap_detail.hpp,v $ * PRODUCTION Revision 1000.0 2003/10/29 17:38:57 gouriano * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.1 * PRODUCTION * =========================================================================== *//* $Id: soap_detail.hpp,v 1000.0 2003/10/29 17:38:57 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 Detail object * * =========================================================================== */#ifndef SOAP_DETAIL_HPP#define SOAP_DETAIL_HPP// standard includes#include <serial/serialbase.hpp>// generated includes#include <list>BEGIN_NCBI_SCOPE// generated classesclass CSoapDetail : public CSerialObject{ typedef CSerialObject Tparent;public: // constructor CSoapDetail(void); // destructor virtual ~CSoapDetail(void); // type info DECLARE_INTERNAL_TYPE_INFO(); class C_E : public CSerialObject { typedef CSerialObject Tparent; public: // constructor C_E(void); // destructor ~C_E(void); // type info DECLARE_INTERNAL_TYPE_INFO(); // types typedef CAnyContentObject TAnyContent; // getters // setters // mandatory // typedef CAnyContentObject TAnyContent bool IsSetAnyContent(void) const; bool CanGetAnyContent(void) const; void ResetAnyContent(void); const TAnyContent& GetAnyContent(void) const; void SetAnyContent(TAnyContent& value); TAnyContent& SetAnyContent(void); // reset whole object void Reset(void); private: // Prohibit copy constructor and assignment operator C_E(const C_E&); C_E& operator=(const C_E&); // data CRef< TAnyContent > m_AnyContent; }; // types typedef std::list< CRef< C_E > > Tdata; // getters // setters // mandatory // typedef std::list< CRef< C_E > > Tdataprotected: bool IsSet(void) const; bool CanGet(void) const; void Reset(void); const Tdata& Get(void) const; Tdata& Set(void); operator const Tdata& (void) const; operator Tdata& (void);private: // Prohibit copy constructor and assignment operator CSoapDetail(const CSoapDetail&); CSoapDetail& operator=(const CSoapDetail&); // data Uint4 m_set_State[1]; Tdata m_data; friend class CSoapMessage;};//////////////////////////////////////////////////////////////////////////////// inline methods /////////////////////////////////////////////////////////////////////////////////inlinebool CSoapDetail::C_E::IsSetAnyContent(void) const{ return m_AnyContent;}inlinebool CSoapDetail::C_E::CanGetAnyContent(void) const{ return IsSetAnyContent();}inlineconst CAnyContentObject& CSoapDetail::C_E::GetAnyContent(void) const{ if (!CanGetAnyContent()) { ThrowUnassigned(0); } return (*m_AnyContent);}inlineCAnyContentObject& CSoapDetail::C_E::SetAnyContent(void){ return (*m_AnyContent);}inlinebool CSoapDetail::IsSet(void) const{ return ((m_set_State[0] & 0x3) != 0);}inlinebool CSoapDetail::CanGet(void) const{ return true;}inlineconst std::list< CRef< CSoapDetail::C_E > >& CSoapDetail::Get(void) const{ return m_data;}inlinestd::list< CRef< CSoapDetail::C_E > >& CSoapDetail::Set(void){ m_set_State[0] |= 0x1; return m_data;}inlineCSoapDetail::operator const std::list< CRef< CSoapDetail::C_E > >& (void) const{ return m_data;}inlineCSoapDetail::operator std::list< CRef< CSoapDetail::C_E > >& (void){ m_set_State[0] |= 0x1; return m_data;}///////////////////////////////////////////////////////////////////////////// end of inline methods /////////////////////////////////////////////////////////////////////////////END_NCBI_SCOPE#endif // SOAP_DETAIL_HPP/* --------------------------------------------------------------------------* $Log: soap_detail.hpp,v $* Revision 1000.0 2003/10/29 17:38:57 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 + -