ICP  1
nxlog.h
Go to the documentation of this file.
1 // nxlog.h : Declaration of the Cnxlog
2 
3 #pragma once
4 #include "resource.h" // main symbols
5 
6 #include "nxlogcom.h"
7 
8 
9 
10 
11 // Cnxlog
12 
13 class ATL_NO_VTABLE Cnxlog :
14  public CComObjectRootEx<CComMultiThreadModel>,
15  public CComCoClass<Cnxlog, &CLSID_nxlog>,
16  public ISupportErrorInfo,
17  public IDispatchImpl<Inxlog, &IID_Inxlog, &LIBID_nxlogcomLib, /*wMajor =*/ 1, /*wMinor =*/ 0>
18 {
19 public:
21  {
22  }
23 
24 DECLARE_REGISTRY_RESOURCEID(IDR_NXLOG)
25 
26 
27 BEGIN_COM_MAP(Cnxlog)
28  COM_INTERFACE_ENTRY(Inxlog)
29  COM_INTERFACE_ENTRY(IDispatch)
30  COM_INTERFACE_ENTRY(ISupportErrorInfo)
31 END_COM_MAP()
32 
33 // ISupportsErrorInfo
34  STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
35 
36 
37  DECLARE_PROTECT_FINAL_CONSTRUCT()
38 
39  HRESULT FinalConstruct()
40  {
41  return S_OK;
42  }
43 
44  void FinalRelease()
45  {
46  }
47 
48 public:
49 
50  STDMETHOD(addLog)(LONG run_number, BSTR source, BSTR log_name, BSTR start_time, VARIANT time_array, BSTR time_units, VARIANT value_array, BSTR value_units);
51 };
52 
53 OBJECT_ENTRY_AUTO(__uuidof(nxlog), Cnxlog)
#define IDR_NXLOG
Definition: Resource.h:7
Definition: nxlog.h:13
Cnxlog()
Definition: nxlog.h:20
void FinalRelease()
Definition: nxlog.h:44