Jamoma API  0.6.0.a19
TTMapperManager.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup modularLibrary
4  *
5  * @brief A MapperManager Object
6  *
7  * @details
8  *
9  * @authors Laurent Garnier
10  *
11  * @copyright © 2010, Laurent Garnier @n
12  * This code is licensed under the terms of the "New BSD License" @n
13  * http://creativecommons.org/licenses/BSD/
14  */
15 
16 
17 #ifndef __TT_MAPPER_MANAGER_H__
18 #define __TT_MAPPER_MANAGER_H__
19 
20 #include "TTModularIncludes.h"
21 
22 /** For now the TTMapperManager allows to instanciate several TTMappers by reading a xml mapping
23  * configuration file using a TTXmlHandler
24  * TODO : writeAsText/readFromText
25  */
26 
27 class TTMapper;
28 typedef TTMapper* TTMapperPtr;
29 
30 class TTXmlHandler;
32 
33 class TTMODULAR_EXPORT TTMapperManager : public TTObjectBase
34 {
35  TTCLASS_SETUP(TTMapperManager)
36 
37 public:
38 
39  TTAddress mAddress; ///< ATTRIBUTE : the address of the mapper manager in the directory
40 
41 private:
42 
43  TTList mMapperList; ///< a list containing <TTMapperPtr>
44 
45 public:
46 
47  TTErr New();
48 
49 private :
50 
51  /** needed to be handled by a TTXmlHandler */
52  TTErr WriteAsXml(const TTValue& inputValue, TTValue& outputValue);
53  TTErr ReadFromXml(const TTValue& inputValue, TTValue& outputValue);
54 
55  /** A setter for the address attribute */
56  TTErr setAddress(const TTValue& value);
57 
58 };
59 
60 typedef TTMapperManager* TTMapperManagerPtr;
61 
62 #endif // __TT_MAPPER_MANAGER_H__
TTModular Library.
The TTAddress class is used to represent a string and efficiently pass and compare that string...
Definition: TTAddress.h:29
Base class for all first-class Jamoma objects.
Definition: TTObjectBase.h:109
#define TTCLASS_SETUP(className)
TODO Doxygen: need more comments here.
Definition: TTFoundation.h:54
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
Write / Read mecanism.
Definition: TTXmlHandler.h:48
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34