Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6enumstr.h
Go to the documentation of this file.
1 
11 #ifndef P6ENUMSTR_H__
12 #define P6ENUMSTR_H__ 1
13 
14 #include "p6com.h"
15 
16 
17 #ifdef __cplusplus
18 namespace P6R {
19 extern "C" {
20 #endif
21 
27 #undef INTERFACE
28 #define INTERFACE p6IEnumStr
30 {
47  P6DECLCOMMETHOD(next)(P6THIS_ P6BSTR* pString ) P6PURE;
48 
58 
70  P6DECLCOMMETHOD(count)(P6THIS_ P6UINT32* pNumber ) P6PURE;
71 };
72 // {0852289E-AFC2-4319-847C-23C191F28ABE}
73 #define IF_p6IEnumStr {0x852289e,0xafc2,0x4319,{0x84,0x7c,0x23,0xc1,0x91,0xf2,0x8a,0xbe}}
74 
75 // {8448DFAA-B260-42de-B3F8-4EDEE954C55A}
76 #define COMP_p6EnumStr {0x8448dfaa,0xb260,0x42de,{0xb3,0xf8,0x4e,0xde,0xe9,0x54,0xc5,0x5a}}
77 
78 
79 
90 static const P6ENUMSTRFLAGS P6STRFLG_NOFLAGS = 0x00000000;
91 static const P6ENUMSTRFLAGS P6STRFLG_TRACE_BASIC = 0x00000001;
92 
99 #undef INTERFACE
100 #define INTERFACE p6IEnumStrInit
102 {
114  P6DECLCOMMETHOD(initialize)(P6THIS_ P6ENUMSTRFLAGS flags ) P6PURE;
115 
127  P6DECLCOMMETHOD(addString)(P6THIS_ P6NCSTR item ) P6PURE;
128 };
129 
130 // {C5BCB7A3-2C8B-4709-A522-983BB4980E1B}
131 #define IF_p6IEnumStrInit {0xc5bcb7a3,0x2c8b,0x4709,{0xa5,0x22,0x98,0x3b,0xb4,0x98,0xe,0x1b}}
132 
133 
134 #ifdef __cplusplus
135 }
136 } // namespace
137 #endif
138 
139 
140 #endif
141 
142 
A convience structure to pass around a narrow string along with its length.
Definition: p6types.h:246
uint32_t P6UINT32
Definition: p6types.h:77
#define P6PURE
Definition: p6defs.h:192
P6UINT32 P6ENUMSTRFLAGS
P6ENUMSTRFLAGS.
Definition: p6enumstr.h:89
This interface is used by the component's creator inorder to add strings into the enumerator during t...
Definition: p6enumstr.h:101
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:97
Binary string.
Definition: p6types.h:185
This interface is a general purpose string enumerator.
Definition: p6enumstr.h:29
#define P6DECLCOMMETHOD(method)
Definition: p6defs.h:189
#define P6THIS_
Definition: p6defs.h:193
P6COM definitions and interfaces.
#define P6THIS
Definition: p6defs.h:194
#define P6DECLAREIF_(iface, baseif)
Definition: p6defs.h:188