OpenMAMA
symbolmapfile.h
Go to the documentation of this file.
1 /* $Id$
2  *
3  * OpenMAMA: The open middleware agnostic messaging API
4  * Copyright (C) 2011 NYSE Technologies, Inc.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21 
22 #ifndef MamaSymbolMapFileH__
23 #define MamaSymbolMapFileH__
24 
25 #if defined(__cplusplus)
26 extern "C" {
27 #endif
28 
29 /* *************************************************** */
30 /* Includes. */
31 /* *************************************************** */
32 #include "mama/mama.h"
33 
34 /* *************************************************** */
35 /* Forward declarations. */
36 /* *************************************************** */
37 
38 /* The symbol map file impl. */
39 typedef void* mamaSymbolMapFile;
40 
41 /* *************************************************** */
42 /* Public Function Prototypes. */
43 /* *************************************************** */
44 
52 MAMAExpDLL
53 extern void
55  mamaSymbolMapFile fileMap,
56  const char* fromSymbol,
57  const char* toSymbol);
58 
74 MAMAExpDLL
75 extern mama_status
77  mamaSymbolMapFile* fileMap);
78 
88 MAMAExpDLL
89 extern mama_status
91  mamaSymbolMapFile fileMap);
92 
103 MAMAExpDLL
104 extern mama_status
106  mamaSymbolMapFile fileMap,
107  const char* fileName);
108 
119 MAMAExpDLL
120 extern int
122  mamaSymbolMapFile fileMap,
123  char* result,
124  const char* symbol,
125  size_t maxLen);
126 
135 MAMAExpDLL
136 extern int
138  mamaSymbolMapFile fileMap,
139  char* result,
140  const char* symbol,
141  size_t maxLen);
142 
143 
144 #if defined(__cplusplus)
145 }
146 #endif
147 
148 #endif /* MamaSymbolMapFileH__ */
149 
mamaSymbolMapFile_revMap
MAMAExpDLL int mamaSymbolMapFile_revMap(mamaSymbolMapFile fileMap, char *result, const char *symbol, size_t maxLen)
Perform a reverse mapping from the file-based symbol mapper.
mama_status
mama_status
Definition: status.h:37
mamaSymbolMapFile_load
MAMAExpDLL mama_status mamaSymbolMapFile_load(mamaSymbolMapFile fileMap, const char *fileName)
(Re)Load the map for the file-based symbol mapper.
mama.h
mamaSymbolMapFile
void * mamaSymbolMapFile
Definition: symbolmapfile.h:39
mamaSymbolMapFile_create
MAMAExpDLL mama_status mamaSymbolMapFile_create(mamaSymbolMapFile *fileMap)
Create a file-based symbol mapper.
mamaSymbolMapFile_destroy
MAMAExpDLL mama_status mamaSymbolMapFile_destroy(mamaSymbolMapFile fileMap)
Destroy the file-based symbol mapper.
mamaSymbolMapFile_addMap
MAMAExpDLL void mamaSymbolMapFile_addMap(mamaSymbolMapFile fileMap, const char *fromSymbol, const char *toSymbol)
Add additional individual symbology mapping.
mamaSymbolMapFile_map
MAMAExpDLL int mamaSymbolMapFile_map(mamaSymbolMapFile fileMap, char *result, const char *symbol, size_t maxLen)
Perform a mapping from the file-based symbol mapper.


© 2012 Linux Foundation