Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 54 lines (43 sloc) 1.511 kb
4b71bbe @mhroth Add LGPL license to remaining files.
authored
1 /*
59dad93 @mhroth Update MessageChange interface and syntax.
authored
2 * Copyright 2009,2010 Reality Jockey, Ltd.
4b71bbe @mhroth Add LGPL license to remaining files.
authored
3 * info@rjdj.me
4 * http://rjdj.me/
ef542b9 Added MessageChange, MessageInteger, MessagePow, MessageSqrt
Yoonchang Han authored
5 *
4b71bbe @mhroth Add LGPL license to remaining files.
authored
6 * This file is part of ZenGarden.
7 *
8 * ZenGarden is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * ZenGarden is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
ef542b9 Added MessageChange, MessageInteger, MessagePow, MessageSqrt
Yoonchang Han authored
17 *
4b71bbe @mhroth Add LGPL license to remaining files.
authored
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with ZenGarden. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
abb33ec First commit of current source.
Martin Roth authored
23 #ifndef _MESSAGE_CHANGE_H_
24 #define _MESSAGE_CHANGE_H_
25
ef542b9 Added MessageChange, MessageInteger, MessagePow, MessageSqrt
Yoonchang Han authored
26 #include "MessageObject.h"
27
28 /** [change] */
29 class MessageChange : public MessageObject {
abb33ec First commit of current source.
Martin Roth authored
30
31 public:
7329847 @mhroth Add static factory method to all objects in order to create an object in...
authored
32 static MessageObject *newObject(PdMessage *initMessage, PdGraph *graph);
ef542b9 Added MessageChange, MessageInteger, MessagePow, MessageSqrt
Yoonchang Han authored
33 MessageChange(PdMessage *initMessage, PdGraph *graph);
abb33ec First commit of current source.
Martin Roth authored
34 ~MessageChange();
ef542b9 Added MessageChange, MessageInteger, MessagePow, MessageSqrt
Yoonchang Han authored
35
7329847 @mhroth Add static factory method to all objects in order to create an object in...
authored
36 static const char *getObjectLabel();
3f6a39c @Kyew Rewrote header functions as inline, add toString to all objects
Kyew authored
37 std::string toString();
ef542b9 Added MessageChange, MessageInteger, MessagePow, MessageSqrt
Yoonchang Han authored
38
abb33ec First commit of current source.
Martin Roth authored
39 private:
ef542b9 Added MessageChange, MessageInteger, MessagePow, MessageSqrt
Yoonchang Han authored
40 void processMessage(int inletIndex, PdMessage *message);
41
59dad93 @mhroth Update MessageChange interface and syntax.
authored
42 float prevValue;
abb33ec First commit of current source.
Martin Roth authored
43 };
44
3f6a39c @Kyew Rewrote header functions as inline, add toString to all objects
Kyew authored
45 inline const char *MessageChange::getObjectLabel() {
46 return "change";
47 }
48
49 inline std::string MessageChange::toString() {
50 return MessageChange::getObjectLabel();
51 }
52
abb33ec First commit of current source.
Martin Roth authored
53 #endif // _MESSAGE_CHANGE_H_
Something went wrong with that request. Please try again.