My Project
 All Classes Functions
ModuleMessaging.hpp
1 // ==============================================================
2 // ORBITER AUX LIBRARY: ModuleMessaging
3 // http://sf.net/projects/enjomitchsorbit
4 // Part of the ORBITER SDK
5 //
6 // Allows Orbiter modules to communicate with each other,
7 // using predefined module and variable names.
8 //
9 // Copyright (C) 2014 Szymon "Enjo" Ender
10 //
11 // All rights reserved
12 //
13 // ModuleMessaging is free software: you can redistribute it
14 // and/or modify it under the terms of the GNU Lesser General Public
15 // License as published by the Free Software Foundation, either version
16 // 3 of the License, or (at your option) any later version.
17 //
18 // ModuleMessaging is distributed in the hope that it will
19 // be useful, but WITHOUT ANY WARRANTY; without even the implied
20 // warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 // See the GNU Lesser General Public License for more details.
22 //
23 // You should have received a copy of the GNU Lesser General Public
24 // License along with ModuleMessaging. If not, see
25 // <http://www.gnu.org/licenses/>.
26 // ==============================================================
27 
28 #ifndef MESSAGINGMODULE_H
29 #define MESSAGINGMODULE_H
30 
31 #include <OrbiterSDK.h>
32 
33 #include <string>
34 #include "Result.hpp"
35 
36 namespace EnjoLib
37 {
39 
69 {
70  public:
72  virtual ~ModuleMessaging();
73 
75  Result<bool> GetBool( const char * moduleName, const char * varName);
77  Result<int> GetInt( const char * moduleName, const char * varName);
79  Result<double> GetDouble( const char * moduleName, const char * varName);
81  Result<VECTOR3> GetVECTOR3( const char * moduleName, const char * varName);
83  Result<MATRIX3> GetMATRIX3( const char * moduleName, const char * varName);
85  Result<MATRIX4> GetMATRIX4( const char * moduleName, const char * varName);
86 
87  protected:
88  private:
89 };
90 }
91 
92 #endif // MESSAGINGMODULE_H
Definition: Result.hpp:7
Result< MATRIX3 > GetMATRIX3(const char *moduleName, const char *varName)
Returns a MATRIX3.
Definition: ModuleMessaging.cpp:59
Result< MATRIX4 > GetMATRIX4(const char *moduleName, const char *varName)
Returns a MATRIX4.
Definition: ModuleMessaging.cpp:63
Result< double > GetDouble(const char *moduleName, const char *varName)
Returns a double.
Definition: ModuleMessaging.cpp:51
Result< VECTOR3 > GetVECTOR3(const char *moduleName, const char *varName)
Returns a VECTOR3.
Definition: ModuleMessaging.cpp:55
Lets obtaining variables from other modules, that were exposed by them.
Definition: ModuleMessaging.hpp:68
Result< int > GetInt(const char *moduleName, const char *varName)
Returns an int.
Definition: ModuleMessaging.cpp:47
Result< bool > GetBool(const char *moduleName, const char *varName)
Returns a bool.
Definition: ModuleMessaging.cpp:43