Jamoma API  0.6.0.a19
TTMessage.cpp
1 /*
2  * TTBlue Object Base Class
3  * Copyright © 2008, Timothy Place
4  *
5  * License: This code is licensed under the terms of the "New BSD License"
6  * http://creativecommons.org/licenses/BSD/
7  */
8 
9 #include "TTObject.h"
10 #include "TTEnvironment.h"
11 
12 
13 TTMessage::TTMessage(const TTSymbol newName, TTMethod newMethod, TTMessageFlags newFlags) :
15  name(newName),
16  flags(newFlags),
17  method(newMethod),
18  hidden(NO),
19  description(kTTSymEmpty)
20 {
21  ;
22 }
23 
24 
25 TTMessage::~TTMessage()
26 {
27  ;
28 }
29 
30 
31 TTErr TTMessage::sethidden(const TTValue& newHiddenFlag)
32 {
33  hidden = newHiddenFlag;
34  return kTTErrNone;
35 }
36 
37 TTErr TTMessage::gethidden(TTValue& currentHiddenFlag)
38 {
39  currentHiddenFlag = hidden;
40  return kTTErrNone;
41 }
42 
43 
44 TTErr TTMessage::setdescription(const TTValue& newDescription)
45 {
46  description = newDescription[0];
47  return kTTErrNone;
48 }
49 
50 TTErr TTMessage::getdescription(TTValue& returnedDescription)
51 {
52  returnedDescription = description;
53  return kTTErrNone;
54 }
TTSymbol description
Property: description of this message.
Definition: TTMessage.h:62
Create Jamoma object instances.
TTBoolean hidden
Property: this message is private/hidden from outside usage.
Definition: TTMessage.h:61
Base class for all first-class Jamoma objects.
Definition: TTObjectBase.h:109
TTErr(TTObjectBase::* TTMethod)(const TTSymbol methodName, const TTValue &anInputValue, TTValue &anOutputValue)
A type that can be used to store a pointer to a message for an object.
Definition: TTObjectBase.h:46
TTMessageFlags
Flags that determine the behavior of messages.
Definition: TTObjectBase.h:84
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
Definition: TTSymbol.h:26
TTEnvironment is a global object providing information on the environemt.
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
No Error.
Definition: TTBase.h:343
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34