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

📄 soap_message.hpp

📁 ncbi源码
💻 HPP
字号:
/* * =========================================================================== * PRODUCTION $Log: soap_message.hpp,v $ * PRODUCTION Revision 1000.1  2004/04/12 17:16:26  gouriano * PRODUCTION PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.3 * PRODUCTION * =========================================================================== */#ifndef SOAP_MESSAGE__HPP#define SOAP_MESSAGE__HPP/*  $Id: soap_message.hpp,v 1000.1 2004/04/12 17:16:26 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:*   Hold the content of, send and receive SOAP messages*/#include <serial/serialbase.hpp>BEGIN_NCBI_SCOPEclass CSoapMessage : public CObject{public:    CSoapMessage(void);    ~CSoapMessage(void);    typedef vector< CConstRef<CSerialObject> > TSoapContent;    enum EMessagePart {        eMsgHeader,        eMsgBody,        eFaultDetail    };// attributes    static const string& GetSoapNamespace(void);    void SetSoapNamespacePrefix(const string& prefix);    const string& GetSoapNamespacePrefix(void) const;// writing    void AddObject(const CSerialObject& obj, EMessagePart destination);    void Write(CObjectOStream& out) const;// reading    void RegisterObjectType(TTypeInfoGetter type_getter);    void RegisterObjectType(const CTypeInfo& type);    void RegisterObjectType(const CSerialObject& obj);    void Read(CObjectIStream& in);// data access    void Reset(void);    const TSoapContent& GetContent(EMessagePart source) const;    CConstRef<CSerialObject> GetSerialObject(const string& type_name,                                             EMessagePart source) const;    CConstRef<CAnyContentObject> GetAnyContentObject(const string& name,                                                     EMessagePart source) const;private:    string m_Prefix;    TSoapContent m_Header;    TSoapContent m_Body;    TSoapContent m_FaultDetail;    vector< const CTypeInfo* >  m_Types;    static const string& ms_SoapNamespace;};inlineCObjectOStream& operator<< (CObjectOStream& out, const CSoapMessage& object){    object.Write(out);    return out;}inline                     CObjectIStream& operator>> (CObjectIStream& in, CSoapMessage& object){    object.Read(in);    return in;}END_NCBI_SCOPE#endif  /* SOAP_MESSAGE__HPP *//* --------------------------------------------------------------------------* $Log: soap_message.hpp,v $* Revision 1000.1  2004/04/12 17:16:26  gouriano* PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.3** Revision 1.3  2003/12/04 20:55:02  gouriano* correct parameter names** Revision 1.2  2003/09/25 19:46:21  gouriano* Added soap Fault object** Revision 1.1  2003/09/22 20:58:20  gouriano* Initial revision*** ===========================================================================*/

⌨️ 快捷键说明

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