stromx  0.7.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Description.h
1 /*
2  * Copyright 2011 Matthias Fuchs
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef STROMX_RUNTIME_DESCRIPTION_H
18 #define STROMX_RUNTIME_DESCRIPTION_H
19 
20 #include "stromx/runtime/DescriptionBase.h"
21 
22 namespace stromx
23 {
24  namespace runtime
25  {
26 
32  class STROMX_RUNTIME_API Description : public DescriptionBase
33  {
34  public:
36  Description(const unsigned int id, const VariantHandle& variant)
37  : DescriptionBase(id, variant),
38  m_operatorThread(0)
39  {}
40 
45  unsigned int operatorThread() const
46  {
47  return m_operatorThread;
48  }
49 
70  void setOperatorThread(const unsigned int operatorThread)
71  {
72  m_operatorThread = operatorThread;
73  }
74 
75  private:
76  unsigned int m_operatorThread;
77  };
78  }
79 }
80 
81 #endif // STROMX_RUNTIME_DESCRIPTION_H
Description of a connector.
Definition: Description.h:32
void setOperatorThread(const unsigned int operatorThread)
Definition: Description.h:70
Abstract description of an ID to variant map.
Definition: DescriptionBase.h:69
Definition: VariantHandle.h:34
unsigned int operatorThread() const
Definition: Description.h:45
Description(const unsigned int id, const VariantHandle &variant)
Definition: Description.h:36
The stromx class library.
Definition: AdjustRgbChannels.cpp:29