📄 geohazardmodel.idl
字号:
// GeoHazardModel.idl : IDL source for GeoHazardModel
//
// This file will be processed by the MIDL tool to
// produce the type library (GeoHazardModel.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
import "..\GHSwatchSystem\GHSwatchSystem.idl";
[
object,
uuid(24AA5936-B8B6-4023-97BB-AAC66CD1F010),
dual,
nonextensible,
helpstring("IHazardModel Interface"),
pointer_default(unique)
]
interface IHazardModel : IDispatch{
[propget, id(1), helpstring("Model's Name")] HRESULT Name([out, retval] BSTR* pVal);
[propget, id(2), helpstring("Model's Description")] HRESULT Description([out, retval] BSTR* pVal);
[propget, id(3), helpstring("Model's HelpFile")] HRESULT HelpFile([out, retval] BSTR* pVal);
[propget, id(4), helpstring("Model's Bitmap")] HRESULT Bitmap([out, retval] OLE_HANDLE* pVal);
[propget, id(5), helpstring("property IndexSystem")] HRESULT IndexSystem([out, retval] IGHIndexs** pVal);
[propput, id(5), helpstring("property IndexSystem")] HRESULT IndexSystem([in] IGHIndexs* newVal);
[propget, id(6), helpstring("property Swatch")] HRESULT Swatch([out, retval] IGHSwatch** pVal);
[propput, id(6), helpstring("property Swatch")] HRESULT Swatch([in] IGHSwatch* newVal);
[propget, id(7), helpstring("property Parameter")] HRESULT Parameter([out, retval] SAFEARRAY(FLOAT)* pVal);
[propput, id(7), helpstring("property Parameter")] HRESULT Parameter([in] SAFEARRAY(FLOAT)* newVal);
[id(8), helpstring("method Run")] HRESULT Run([in] SAFEARRAY(FLOAT)* inputValue, [out,retval] FLOAT* pVal);
};
[
object,
uuid(231318EC-2840-4BFE-9185-53BD27499089),
dual,
nonextensible,
helpstring("ITestModel Interface"),
pointer_default(unique)
]
interface ITestModel : IHazardModel
{
[propget, id(9), helpstring("property a")] HRESULT a([out, retval] FLOAT* pVal);
[propput, id(9), helpstring("property a")] HRESULT a([in] FLOAT newVal);
[propget, id(10), helpstring("property b")] HRESULT b([out, retval] FLOAT* pVal);
[propput, id(10), helpstring("property b")] HRESULT b([in] FLOAT newVal);
};
[
object,
uuid(BC44B855-A641-419E-A301-40DD9D1E26CA),
dual,
nonextensible,
helpstring("IModelSVM Interface"),
pointer_default(unique)
]
interface IModelSVM : IHazardModel{
};
[
uuid(2875C234-0144-4BE1-93B1-A7AA68CC2B25),
version(1.0),
helpstring("GeoHazardModel 1.0 Type Library")
]
library GeoHazardModelLib
{
importlib("stdole2.tlb");
[
uuid(05486086-84A1-4E54-B1BD-591286B95004),
helpstring("HazardModel Class")
]
coclass HazardModel
{
[default] interface IHazardModel;
};
[
uuid(5828C838-57DB-46E2-8EBB-DEBE146609A4),
helpstring("ITestModel Class")
]
coclass TestModel
{
[default] interface ITestModel;
};
[
uuid(4E988B91-6AF6-42F9-82F2-2673B3FB4543),
helpstring("ModelSVM Class")
]
coclass ModelSVM
{
[default] interface IModelSVM;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -