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

📄 echo_types.h

📁 ESOAP是一款专注于嵌入式web service开发的工具 压缩包里提供了基本的例子
💻 H
字号:
/*
 Created by eSoap Code Generator for C++, >>> DEMO <<<  Version - 1.08
 **** DO NOT EDIT THIS FILE.  *****
 Time: Sun Sep 09 09:37:42 2001

 **** CODE CREATED USING AN UNREGISTERED VERSION OF ESOAPCG.
 Please, after the initial testing, you *MUST* buy a
 copy of this application to continue using it.

 * Limits of this version:

     + 5 functions per interface
     + 5 User defined types( Complex Types )

*/

#ifndef echo_types_h__
#define echo_types_h__

#include "soap_envelope.h"
#include "soap_parameter.h"


namespace echo {

class Address;
class UserProfile;

class Address
{
  bool __isNil;
public:

  Address();
  ~Address();
  Address( const Address & __c );
  const Address & operator=( const Address & __c );

  bool isNil() const { return __isNil; }
  void setNil( bool __val ) { __isNil = __val; }
  bool from( esoap::Parameter *p, esoap::Envelope *e );
  esoap::Parameter *to( const char *n ) const;

  void set_m_street( const esoap::String __tmp ) { m_street = __tmp; __isNil=false; }
  esoap::String get_m_street() const { return m_street; }
  void set_m_city( const esoap::String __tmp ) { m_city = __tmp; __isNil=false; }
  esoap::String get_m_city() const { return m_city; }
  void set_m_state( const esoap::String __tmp ) { m_state = __tmp; __isNil=false; }
  esoap::String get_m_state() const { return m_state; }
  void set_m_zipcode( const int __tmp ) { m_zipcode = __tmp; __isNil=false; }
  int get_m_zipcode() const { return m_zipcode; }


  private:

  esoap::String  m_street;
  esoap::String  m_city;
  esoap::String  m_state;
  int  m_zipcode;

};


class UserProfile
{
  bool __isNil;
public:

  UserProfile();
  ~UserProfile();
  UserProfile( const UserProfile & __c );
  const UserProfile & operator=( const UserProfile & __c );

  bool isNil() const { return __isNil; }
  void setNil( bool __val ) { __isNil = __val; }
  bool from( esoap::Parameter *p, esoap::Envelope *e );
  esoap::Parameter *to( const char *n ) const;

  void set_m_name( const esoap::String __tmp ) { m_name = __tmp; __isNil=false; }
  esoap::String get_m_name() const { return m_name; }
  void set_m_age( const int __tmp ) { m_age = __tmp; __isNil=false; }
  int get_m_age() const { return m_age; }
  void set_m_address( const Address & __tmp ) { m_address = __tmp; __isNil=false; }
  Address & get_m_address() { return m_address; __isNil=false; }


  private:

  esoap::String  m_name;
  int  m_age;
  Address  m_address;

};

}

#endif // echo_types_h_


⌨️ 快捷键说明

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