Custom Platform Support Development Kit  1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
IFCMDictionary.h
Go to the documentation of this file.
1 /*************************************************************************
2 * ADOBE CONFIDENTIAL
3 * ___________________
4 *
5 * Copyright [2013] Adobe Systems Incorporated
6 * All Rights Reserved.
7 *
8 * NOTICE: All information contained herein is, and remains
9 * the property of Adobe Systems Incorporated and its suppliers,
10 * if any. The intellectual and technical concepts contained
11 * herein are proprietary to Adobe Systems Incorporated and its
12 * suppliers and are protected by all applicable intellectual
13 * property laws, including trade secret and copyright laws.
14 * Dissemination of this information or reproduction of this material
15 * is strictly forbidden unless prior written permission is obtained
16 * from Adobe Systems Incorporated.
17 **************************************************************************/
18 
26 #ifndef IFCM_DICTIONARY_H_
27 #define IFCM_DICTIONARY_H_
28 
29 #include "FCMPreConfig.h"
30 #include "FCMTypes.h"
31 #include "IFCMUnknown.h"
32 
33 
34 /* -------------------------------------------------- Forward Decl */
35 
36 
37 /* -------------------------------------------------- Macros / Constants */
38 
39 namespace FCM
40 {
47  {0x8bb58643, 0x57e, 0x4158, {0x88, 0x76, 0x6f, 0xf3, 0x34, 0xe5, 0xec, 0xe6}};
48 
49 
55  #define FCMDICT_RUNTIME_KEY_PREFIX "_rt_"
56 }
57 
58 
59 /* -------------------------------------------------- Enums */
60 
61 namespace FCM
62 {
66  typedef enum
67  {
70 
73 
76 
79 
82 
85 
88 
91 
94 
97 
98  /* Last */
99  _kFCMDictType_Last_
100 
102 
103 }; // namespace FCM
104 
105 
106 /* -------------------------------------------------- Structs / Unions */
107 
108 
109 /* -------------------------------------------------- Class Decl */
110 
111 namespace FCM
112 {
119 
120 
137  virtual FCM::Result _FCMCALL Add(
138  CStringRep8 pKey,
139  FCMDictRecTypeID type,
140  FCM::PVoid value,
141  FCM::U_Int32 valueLen) = 0;
142 
143 
157  virtual FCM::Result _FCMCALL AddLevel(CStringRep8 pKey, PIFCMDictionary& ppDict) = 0;
158 
159 
169  virtual FCM::Result _FCMCALL Remove(CStringRep8 pKey) = 0;
170 
171 
196  virtual FCM::Result _FCMCALL Get(
197  CStringRep8 pKey,
198  FCMDictRecTypeID type,
199  FCM::PVoid pValue,
200  FCM::U_Int32& valueLen) = 0;
201 
202 
208  virtual FCM::Result _FCMCALL Clear() = 0;
209 
210 
219  virtual FCM::Result _FCMCALL Count(FCM::U_Int32& count) = 0;
220 
221 
241  virtual FCM::Result _FCMCALL GetNth(
242  FCM::U_Int32 index,
243  StringRep8 & pKey,
244  FCMDictRecTypeID& type,
245  FCM::U_Int32& valueLen) = 0;
246 
247 
262  virtual FCM::Result _FCMCALL GetInfo(
263  CStringRep8 pKey,
264  FCMDictRecTypeID& type,
265  FCM::U_Int32& valueLen) = 0;
266 
268 
269 }; // namespace FCM
270 
271 
272 /* -------------------------------------------------- Inline / Functions */
273 
274 
275 #include "FCMPostConfig.h"
276 
277 #endif //IFCM_DICTIONARY_H_
This file contains definitions for various data types.
unsigned _int32 U_Int32
Type to define an unsigned 32-bit value.
Definition: FCMTypes.h:81
#define BEGIN_DECLARE_INTERFACE(ifx, iid)
Used to begin the interface ifx with ID iid, which inherits from IFCMUnknown.
Definition: FCMMacros.h:147
The definitions contained in this namespace define a framework called Flash Component Model (FCM)...
Definition: IGroup.h:36
Definition: IFCMDictionary.h:75
Defines the interface that represents the dictionary.
Definition: IFCMDictionary.h:118
This file contains interface for IFCMUnknown. All FCM interfaces inherit from IFCMUnknown. This interface is similar to Microsoft's COM IUnknown. Primary purpose of this interface is to facilitate a way to obtain pointers to other interfaces through QueryInterface method.
Definition: IFCMDictionary.h:93
Definition: IFCMDictionary.h:90
#define _FCMCALL
Defines calling convention for interface methods.
Definition: FCMMacros.h:176
Definition: IFCMDictionary.h:96
Definition: IFCMDictionary.h:81
U_Int32 Result
Type to define a result. This is usually the return type for most APIs.
Definition: FCMTypes.h:126
Represents a 128 bit or 16-byte GUID (Globally Unique IDentifier) value.
Definition: FCMTypes.h:189
Definition: IFCMDictionary.h:72
Definition: IFCMDictionary.h:84
Definition: IFCMDictionary.h:78
Definition: IFCMDictionary.h:87
const char * CStringRep8
Used to define a constant unicode (UTF8) encoded string.
Definition: FCMTypes.h:182
#define END_DECLARE_INTERFACE
Ends an interface.
Definition: FCMMacros.h:165
void * PVoid
Type to define a void pointer.
Definition: FCMTypes.h:147
FCMDictRecTypeID
This defines different types of dictionary IDs.
Definition: IFCMDictionary.h:66
char * StringRep8
Used to define a unicode (UTF8) encoded string.
Definition: FCMTypes.h:175
FCM::ConstFCMIID FCMIID_IFCMDictionary
Defines the universally-unique interface ID for IFCMDictionary.
Definition: IFCMDictionary.h:46
Definition: IFCMDictionary.h:69