My Project
 All Classes Functions
IMessagingSender.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 IMESSAGINGSENDER_H
29 #define IMESSAGINGSENDER_H
30 
31 #include <OrbiterSdk.h>
32 
33 namespace EnjoLib
34 {
36 
65 {
66  public:
68  virtual ~IMessagingSender();
70  virtual const char * GetModuleName() const = 0;
71 
73  void SendBool(const char * varName, bool var) const;
75  void SendInt(const char * varName, int var) const;
77  void SendDouble(const char * varName, double var) const;
79  void SendVECTOR3(const char * varName, const VECTOR3 & var) const;
81  void SendMATRIX3(const char * varName, const MATRIX3 & var) const;
83  void SendMATRIX4(const char * varName, const MATRIX4 & var) const;
84 
85  protected:
86 
87  private:
88 };
89 }
90 
91 #endif // IMESSAGINGSENDER_H
void SendBool(const char *varName, bool var) const
Sends a bool.
Definition: IMessagingSender.cpp:39
void SendDouble(const char *varName, double var) const
Sends a double.
Definition: IMessagingSender.cpp:47
void SendMATRIX4(const char *varName, const MATRIX4 &var) const
Sends a MATRIX4.
Definition: IMessagingSender.cpp:59
void SendVECTOR3(const char *varName, const VECTOR3 &var) const
Sends a VECTOR3.
Definition: IMessagingSender.cpp:51
virtual const char * GetModuleName() const =0
Should return unique module&#39;s name.
void SendInt(const char *varName, int var) const
Sends an int.
Definition: IMessagingSender.cpp:43
void SendMATRIX3(const char *varName, const MATRIX3 &var) const
Sends a MATRIX3.
Definition: IMessagingSender.cpp:55
Interface for a class that is supposed to expose its data to another modules.
Definition: IMessagingSender.hpp:64