Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6enumwstr.h
Go to the documentation of this file.
1 
11 #ifndef P6ENUMWSTR_H__
12 #define P6ENUMWSTR_H__ 1
13 
14 #include "p6com.h"
15 
16 
17 namespace P6R {
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
28 interface p6IEnumWStr : public p6ICom
29 {
46  P6COMMETHOD next( P6BWSTR* pString ) = 0;
47 
56  P6COMMETHOD reset() = 0;
57 
69  P6COMMETHOD count( P6UINT32* pNumber ) = 0;
70 };
71 // {09C0723F-5C13-4050-AE58-240A7510C370}
72 #define IF_p6IEnumWStr {0x9c0723f,0x5c13,0x4050,{0xae,0x58,0x24,0xa,0x75,0x10,0xc3,0x70}}
73 
74 // {5A894AFA-7EC1-4152-B5C4-DCC3E5E05806}
75 #define COMP_p6EnumWStr {0x5a894afa,0x7ec1,0x4152,{0xb5,0xc4,0xdc,0xc3,0xe5,0xe0,0x58,0x6}}
76 
77 
78 
89 const P6ENUMWSTRFLAGS P6WSTRFLG_NOFLAGS = 0x00000000;
90 const P6ENUMWSTRFLAGS P6WSTRFLG_TRACE_BASIC = 0x00000001;
91 
99 {
111  P6COMMETHOD initialize( P6ENUMWSTRFLAGS flags ) = 0;
112 
124  P6COMMETHOD addString( P6BWCSTR item ) = 0;
125 };
126 
127 // {26514827-5C53-47b0-8366-899823C08AAE}
128 #define IF_p6IEnumWStrInit {0x26514827,0x5c53,0x47b0,{0x83,0x66,0x89,0x98,0x23,0xc0,0x8a,0xae}}
129 
130 
131 #ifdef __cplusplus
132 }
133 #endif
134 
135 } // namespace
136 
137 
138 #endif
139 
140 
Wide binary string.
Definition: p6types.h:184
virtual P6R::P6ERR addString(P6BWCSTR item)=0
Add a copy of the string passed in by the parameter 'item' to the enumerator.
unsigned int P6UINT32
Definition: p6types.h:40
virtual P6R::P6ERR count(P6UINT32 *pNumber)=0
Return to the caller the total number of items stored in the enumerator.
virtual P6R::P6ERR initialize(P6ENUMWSTRFLAGS flags)=0
Sets up the component to run properly and must be called before any other method. ...
Wide Const binary string.
Definition: p6types.h:200
const P6ENUMWSTRFLAGS P6WSTRFLG_TRACE_BASIC
Definition: p6enumwstr.h:90
This interface is used by the component's creator inorder to add strings into the enumerator during t...
Definition: p6enumwstr.h:98
virtual P6R::P6ERR next(P6BWSTR *pString)=0
Iterate though one or more returned strings.
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:96
This interface is a general purpose string enumerator.
Definition: p6enumwstr.h:28
const P6ENUMWSTRFLAGS P6WSTRFLG_NOFLAGS
Definition: p6enumwstr.h:89
virtual P6R::P6ERR reset()=0
This method is used to re-start the enumerator at the beginning.
#define P6COMMETHOD
Definition: p6types.h:872
P6UINT32 P6ENUMWSTRFLAGS
P6WSTRENUMFLAGS.
Definition: p6enumwstr.h:88
P6COM definitions and interfaces.