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

📄 com_cdynews.h

📁 GPS and Web Service using C++ ATLWTL 源代码
💻 H
📖 第 1 页 / 共 5 页
字号:
//
// sproxy.exe generated file
// do not modify this file
//
// Created: 01/11/2008@16:27:25
//

#pragma once


#if !defined(_WIN32_WINDOWS) && !defined(_WIN32_WINNT) && !defined(_WIN32_WCE)
#pragma message("warning: defining _WIN32_WINDOWS = 0x0410")
#define _WIN32_WINDOWS 0x0410
#endif

#include <atlsoap.h>

namespace DemographixQuery
{

struct RacePercentagesCls
{
	double Asian;
	double Black;
	double Indian;
	double Mixed;
	double NativeHawaiian;
	double Other;
	double White;
};

struct PlaceInformationCls
{
	BSTR StateAbbrev;
	BSTR PlaceID;
	bool Rural;
};

struct PlaceInfo
{
	PlaceInformationCls PlaceInformation;
	bool Error;
	BSTR ErrorString;
};

struct CensusInfoWithDataSet
{
	bool Error;
	BSTR ErrorString;
	BSTR CensusDataSet;
};

struct MaritalStatusPercentagesCls
{
	double NeverMarried;
	double Married;
	double Separated;
	double MarriedOther;
	double Widowed;
	double Divorced;
};

struct GenderPercentagesCls
{
	double Female;
	double Male;
};

struct SummaryInformation
{
	PlaceInformationCls PlaceInformation;
	bool Error;
	BSTR ErrorString;
	unsigned char MedianAge;
	int MedianIncome;
	unsigned char MedianRoomsInHouse;
	int MedianHouseValue;
	unsigned char MedianVehicles;
	MaritalStatusPercentagesCls MaritalStatusPercentages;
	RacePercentagesCls RacePercentages;
	GenderPercentagesCls GenderPercentages;
};

struct IncomeAndHouseValue
{
	PlaceInformationCls PlaceInformation;
	bool Error;
	BSTR ErrorString;
	int MedianIncome;
	int MedianHouseValue;
};

template <typename TClient = CSoapSocketClientT<> >
class CDemographixQueryT : 
	public TClient, 
	public CSoapRootHandler
{
protected:

	const _soapmap ** GetFunctionMap();
	const _soapmap ** GetHeaderMap();
	void * GetHeaderValue();
	const wchar_t * GetNamespaceUri();
	const char * GetServiceName();
	const char * GetNamespaceUriA();
	HRESULT CallFunction(
		void *pvParam, 
		const wchar_t *wszLocalName, int cchLocalName,
		size_t nItem);
	HRESULT GetClientReader(ISAXXMLReader **ppReader);

public:

	HRESULT __stdcall QueryInterface(REFIID riid, void **ppv)
	{
		if (ppv == NULL)
		{
			return E_POINTER;
		}

		*ppv = NULL;

		if (InlineIsEqualGUID(riid, IID_IUnknown) ||
			InlineIsEqualGUID(riid, IID_ISAXContentHandler))
		{
			*ppv = static_cast<ISAXContentHandler *>(this);
			return S_OK;
		}

		return E_NOINTERFACE;
	}

	ULONG __stdcall AddRef()
	{
		return 1;
	}

	ULONG __stdcall Release()
	{
		return 1;
	}

	CDemographixQueryT(ISAXXMLReader *pReader = NULL)
		:TClient(_T("http://ws.cdyne.com/DemographixWS/DemographixQuery.asmx"))
	{
		SetClient(true);
		SetReader(pReader);
	}
	
	~CDemographixQueryT()
	{
		Uninitialize();
	}
	
	void Uninitialize()
	{
		UninitializeSOAP();
	}	

	HRESULT GetNeighborhoodLinguisticIsolation(
		BSTR StateAbbr, 
		BSTR PlaceID, 
		CensusInfoWithDataSet* GetNeighborhoodLinguisticIsolationResult
	);

	HRESULT GetNeighborhoodAgeInDataSet(
		BSTR StateAbbrev, 
		BSTR PlaceID, 
		CensusInfoWithDataSet* GetNeighborhoodAgeInDataSetResult
	);

	HRESULT GetVersion(
		BSTR* GetVersionResult
	);

	HRESULT GetNeighborhoodPlaceofBirthbyCitizenshipStatusInDataset(
		BSTR StateAbbr, 
		BSTR PlaceID, 
		CensusInfoWithDataSet* GetNeighborhoodPlaceofBirthbyCitizenshipStatusInDatasetResult
	);

	HRESULT GetSummaryInformationByPlaceID(
		BSTR StateAbbrev, 
		BSTR PlaceID, 
		SummaryInformation* GetSummaryInformationByPlaceIDResult
	);

	HRESULT GetNeighborhoodRealtyValueInDataSet(
		BSTR StateAbbrev, 
		BSTR PlaceID, 
		CensusInfoWithDataSet* GetNeighborhoodRealtyValueInDataSetResult
	);

	HRESULT GetLocationInformationByAddress(
		BSTR AddressLine1, 
		BSTR City, 
		BSTR StateAbbrev, 
		BSTR ZipCode, 
		BSTR LicenseKey, 
		SummaryInformation* GetLocationInformationByAddressResult
	);

	HRESULT GetNeighborhoodAgeGenderFemaleInDataSet(
		BSTR StateAbbrev, 
		BSTR PlaceID, 
		CensusInfoWithDataSet* GetNeighborhoodAgeGenderFemaleInDataSetResult
	);

	HRESULT GetPlaceIDbyAddress(
		BSTR AddressLine1, 
		BSTR City, 
		BSTR StateAbbrev, 
		BSTR ZipCode, 
		BSTR LicenseKey, 
		PlaceInfo* GetPlaceIDbyAddressResult
	);

	HRESULT GetLocationInformationByLatitudeLongitude(
		double Latitude, 
		double Longitude, 
		BSTR LicenseKey, 
		SummaryInformation* GetLocationInformationByLatitudeLongitudeResult
	);

	HRESULT GetNeighborhoodVehiclesPerHouseholdInDataset(
		BSTR StateAbbr, 
		BSTR PlaceID, 
		CensusInfoWithDataSet* GetNeighborhoodVehiclesPerHouseholdInDatasetResult
	);

	HRESULT GetNeighborhoodYearStructuresBuilt(
		BSTR StateAbbr, 
		BSTR PlaceID, 
		CensusInfoWithDataSet* GetNeighborhoodYearStructuresBuiltResult
	);

	HRESULT GetIncomeHouseValueByAddress(
		BSTR AddressLine1, 
		BSTR City, 
		BSTR StateAbbrev, 
		BSTR ZipCode, 
		BSTR LicenseKey, 
		IncomeAndHouseValue* GetIncomeHouseValueByAddressResult
	);

	HRESULT GetNeighborhoodAgeGenderMaleInDataSet(
		BSTR StateAbbrev, 
		BSTR PlaceID, 
		CensusInfoWithDataSet* GetNeighborhoodAgeGenderMaleInDataSetResult
	);

	HRESULT GetPlaceIDbyCensusTractAndBlock(
		BSTR StateAbbrev, 
		BSTR CensusTract, 
		BSTR CensusBlock, 
		BSTR LicenseKey, 
		PlaceInfo* GetPlaceIDbyCensusTractAndBlockResult
	);
};

typedef CDemographixQueryT<> CDemographixQuery;

__if_not_exists(__RacePercentagesCls_entries)
{
extern __declspec(selectany) const _soapmapentry __RacePercentagesCls_entries[] =
{
	{ 
		0x04D913EC, 
		"Asian", 
		L"Asian", 
		sizeof("Asian")-1, 
		SOAPTYPE_DECIMAL, 
		SOAPFLAG_FIELD, 
		offsetof(RacePercentagesCls, Asian),
		NULL, 
		NULL, 
		-1 
	},
	{ 
		0x04E733FD, 
		"Black", 
		L"Black", 
		sizeof("Black")-1, 
		SOAPTYPE_DECIMAL, 
		SOAPFLAG_FIELD, 
		offsetof(RacePercentagesCls, Black),
		NULL, 
		NULL, 
		-1 
	},
	{ 
		0xB247BED3, 
		"Indian", 
		L"Indian", 
		sizeof("Indian")-1, 
		SOAPTYPE_DECIMAL, 
		SOAPFLAG_FIELD, 
		offsetof(RacePercentagesCls, Indian),
		NULL, 
		NULL, 
		-1 
	},
	{ 
		0x05ACFE77, 
		"Mixed", 
		L"Mixed", 
		sizeof("Mixed")-1, 
		SOAPTYPE_DECIMAL, 
		SOAPFLAG_FIELD, 
		offsetof(RacePercentagesCls, Mixed),
		NULL, 
		NULL, 
		-1 
	},
	{ 
		0x8DD9BAA9, 
		"NativeHawaiian", 
		L"NativeHawaiian", 
		sizeof("NativeHawaiian")-1, 
		SOAPTYPE_DECIMAL, 
		SOAPFLAG_FIELD, 
		offsetof(RacePercentagesCls, NativeHawaiian),
		NULL, 
		NULL, 
		-1 
	},
	{ 
		0x05D6F3A2, 
		"Other", 
		L"Other", 
		sizeof("Other")-1, 
		SOAPTYPE_DECIMAL, 
		SOAPFLAG_FIELD, 
		offsetof(RacePercentagesCls, Other),
		NULL, 
		NULL, 
		-1 
	},
	{ 
		0x06612941, 
		"White", 
		L"White", 
		sizeof("White")-1, 
		SOAPTYPE_DECIMAL, 
		SOAPFLAG_FIELD, 
		offsetof(RacePercentagesCls, White),
		NULL, 
		NULL, 
		-1 
	},
	{ 0x00000000 }
};

extern __declspec(selectany) const _soapmap __RacePercentagesCls_map =
{
	0x151C7DCE,
	"RacePercentagesCls",
	L"RacePercentagesCls",
	sizeof("RacePercentagesCls")-1,
	sizeof("RacePercentagesCls")-1,
	SOAPMAP_STRUCT,
	__RacePercentagesCls_entries,
	sizeof(RacePercentagesCls),
	7,
	-1,
	SOAPFLAG_NONE,
	0xE3186EC1,
	"http://ws.cdyne.com/DemographixWS",
	L"http://ws.cdyne.com/DemographixWS",
	sizeof("http://ws.cdyne.com/DemographixWS")-1
};
}

__if_not_exists(__PlaceInformationCls_entries)
{
extern __declspec(selectany) const _soapmapentry __PlaceInformationCls_entries[] =
{
	{ 
		0x40522853, 
		"StateAbbrev", 
		L"StateAbbrev", 
		sizeof("StateAbbrev")-1, 
		SOAPTYPE_STRING, 
		SOAPFLAG_FIELD | SOAPFLAG_NULLABLE, 
		offsetof(PlaceInformationCls, StateAbbrev),
		NULL, 
		NULL, 
		-1 
	},
	{ 
		0x113369F2, 
		"PlaceID", 
		L"PlaceID", 
		sizeof("PlaceID")-1, 
		SOAPTYPE_STRING, 
		SOAPFLAG_FIELD | SOAPFLAG_NULLABLE, 
		offsetof(PlaceInformationCls, PlaceID),
		NULL, 
		NULL, 
		-1 
	},
	{ 
		0x060DF386, 
		"Rural", 
		L"Rural", 
		sizeof("Rural")-1, 
		SOAPTYPE_BOOLEAN, 
		SOAPFLAG_FIELD, 
		offsetof(PlaceInformationCls, Rural),
		NULL, 
		NULL, 
		-1 
	},
	{ 0x00000000 }
};

extern __declspec(selectany) const _soapmap __PlaceInformationCls_map =
{
	0x9B3AF5CD,
	"PlaceInformationCls",
	L"PlaceInformationCls",
	sizeof("PlaceInformationCls")-1,
	sizeof("PlaceInformationCls")-1,
	SOAPMAP_STRUCT,
	__PlaceInformationCls_entries,
	sizeof(PlaceInformationCls),
	3,
	-1,
	SOAPFLAG_NONE,
	0xE3186EC1,
	"http://ws.cdyne.com/DemographixWS",
	L"http://ws.cdyne.com/DemographixWS",
	sizeof("http://ws.cdyne.com/DemographixWS")-1
};
}

__if_not_exists(__PlaceInfo_entries)
{
extern __declspec(selectany) const _soapmapentry __PlaceInfo_entries[] =
{
	{ 
		0x12C0EA4B, 
		"PlaceInformation", 
		L"PlaceInformation", 
		sizeof("PlaceInformation")-1, 
		SOAPTYPE_UNK, 
		SOAPFLAG_FIELD, 
		offsetof(PlaceInfo, PlaceInformation),
		NULL, 
		&__PlaceInformationCls_map, 
		-1 
	},
	{ 
		0x052111AA, 
		"Error", 
		L"Error", 
		sizeof("Error")-1, 
		SOAPTYPE_BOOLEAN, 
		SOAPFLAG_FIELD, 
		offsetof(PlaceInfo, Error),
		NULL, 
		NULL, 
		-1 
	},
	{ 
		0x2025C041, 
		"ErrorString", 
		L"ErrorString", 
		sizeof("ErrorString")-1, 
		SOAPTYPE_STRING, 
		SOAPFLAG_FIELD | SOAPFLAG_NULLABLE, 
		offsetof(PlaceInfo, ErrorString),
		NULL, 
		NULL, 
		-1 
	},
	{ 0x00000000 }
};

extern __declspec(selectany) const _soapmap __PlaceInfo_map =
{
	0x2BB66EB1,
	"PlaceInfo",
	L"PlaceInfo",
	sizeof("PlaceInfo")-1,
	sizeof("PlaceInfo")-1,
	SOAPMAP_STRUCT,
	__PlaceInfo_entries,
	sizeof(PlaceInfo),
	3,
	-1,
	SOAPFLAG_NONE,
	0xE3186EC1,
	"http://ws.cdyne.com/DemographixWS",
	L"http://ws.cdyne.com/DemographixWS",
	sizeof("http://ws.cdyne.com/DemographixWS")-1
};
}

__if_not_exists(__CensusInfoWithDataSet_entries)
{
extern __declspec(selectany) const _soapmapentry __CensusInfoWithDataSet_entries[] =
{
	{ 
		0x052111AA, 
		"Error", 
		L"Error", 
		sizeof("Error")-1, 

⌨️ 快捷键说明

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