-
Notifications
You must be signed in to change notification settings - Fork 23
/
CTextStream.h
43 lines (35 loc) · 990 Bytes
/
CTextStream.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
#ifdef SPASM_NG_ENABLE_COM
class ATL_NO_VTABLE CTextStream :
public CComObjectRootEx<CComObjectThreadModel>,
public IDispatchImpl<ITextStream, &__uuidof(ITextStream), &__uuidof(__Scripting), 1, 0>
{
public:
BEGIN_COM_MAP(CTextStream)
COM_INTERFACE_ENTRY(ITextStream)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
HRESULT FinalConstruct();
STDMETHOD(get_Line)(LONG *plLine)
{
return E_NOTIMPL;
}
STDMETHOD(get_Column)(LONG *plColumn)
{
return E_NOTIMPL;
}
STDMETHOD(get_AtEndOfLine)(VARIANT_BOOL *bEOL);
STDMETHOD(get_AtEndOfStream)(VARIANT_BOOL *bEOS);
STDMETHOD(Read)(LONG cch, LPBSTR lpbstrResult);
STDMETHOD(ReadLine)(LPBSTR lpbstrLine);
STDMETHOD(ReadAll)(LPBSTR lpbstrResult);
STDMETHOD(Write)(BSTR bstrText);
STDMETHOD(WriteLine)(BSTR bstrLine);
STDMETHOD(WriteBlankLines)(LONG nLines);
STDMETHOD(Skip)(LONG cch);
STDMETHOD(SkipLine)();
STDMETHOD(Close)();
private:
HANDLE m_hRead;
};
#endif