• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*---------------------------------------------------------------------------*
2  *  SR_SemanticResultImpl.h  *
3  *                                                                           *
4  *  Copyright 2007, 2008 Nuance Communciations, Inc.                               *
5  *                                                                           *
6  *  Licensed under the Apache License, Version 2.0 (the 'License');          *
7  *  you may not use this file except in compliance with the License.         *
8  *                                                                           *
9  *  You may obtain a copy of the License at                                  *
10  *      http://www.apache.org/licenses/LICENSE-2.0                           *
11  *                                                                           *
12  *  Unless required by applicable law or agreed to in writing, software      *
13  *  distributed under the License is distributed on an 'AS IS' BASIS,        *
14  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
15  *  See the License for the specific language governing permissions and      *
16  *  limitations under the License.                                           *
17  *                                                                           *
18  *---------------------------------------------------------------------------*/
19 
20 #ifndef __SR_SEMANTICRESULTIMPL_H
21 #define __SR_SEMANTICRESULTIMPL_H
22 
23 
24 
25 #include "ESR_ReturnCode.h"
26 #include "HashMap.h"
27 
28 
29 /**
30  * SemanticResult implementation.
31  */
32 typedef struct SR_SemanticResultImpl_t
33 {
34   /**
35    * Interface functions that must be implemented.
36    */
37   SR_SemanticResult Interface;
38 
39   /**
40    * Semantic [key, value] pairs.
41    */
42   HashMap* results;
43 }
44 SR_SemanticResultImpl;
45 
46 /**
47  * Default implementation.
48  */
49 SREC_SEMPROC_API ESR_ReturnCode SR_SemanticResult_GetKeyCount(SR_SemanticResult* self, size_t* count);
50 /**
51  * Default implementation.
52  */
53 SREC_SEMPROC_API ESR_ReturnCode SR_SemanticResult_GetKeyList(SR_SemanticResult* self, LCHAR** list, size_t* size);
54 /**
55  * Default implementation.
56  */
57 SREC_SEMPROC_API ESR_ReturnCode SR_SemanticResult_GetValue(SR_SemanticResult* self, const LCHAR* key, LCHAR* value, size_t* len);
58 /**
59  * Default implementation.
60  */
61 SREC_SEMPROC_API ESR_ReturnCode SR_SemanticResult_Destroy(SR_SemanticResult* self);
62 
63 #endif /* __SR_SEMANTICRESULTIMPL_H */
64