SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
IntItemDefinition.h
1 //=========================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //=========================================================================
10 // .NAME IntItemDefinition.h -
11 // .SECTION Description
12 // .SECTION See Also
13 
14 #ifndef smtk_attribute_IntItemDefinition_h
15 #define smtk_attribute_IntItemDefinition_h
16 
17 #include "smtk/attribute/ValueItemDefinitionTemplate.h"
18 
19 namespace smtk
20 {
21 namespace attribute
22 {
23 class SMTKCORE_EXPORT IntItemDefinition : public ValueItemDefinitionTemplate<int>
24 {
25 public:
27  static smtk::attribute::IntItemDefinitionPtr New(const std::string& myName)
28  {
30  }
31 
32  ~IntItemDefinition() override;
33  Item::Type type() const override;
34  smtk::attribute::ItemPtr buildItem(Attribute* owningAttribute, int itemPosition) const override;
35  smtk::attribute::ItemPtr buildItem(Item* owningItem, int position, int subGroupPosition)
36  const override;
37 
39  smtk::attribute::ItemDefinition::CopyInfo& info) const override;
40 
41 protected:
42  IntItemDefinition(const std::string& myName);
43 
44 private:
45 };
46 } // namespace attribute
47 } // namespace smtk
48 
49 #endif /* smtk_attribute_DoubleItemDefinition_h */
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
smtk::attribute::Item::Type
Type
Definition: Item.h:52
smtk::attribute::IntItemDefinitionPtr
smtk::shared_ptr< smtk::attribute::IntItemDefinition > IntItemDefinitionPtr
Definition: PublicPointerDefs.h:514
smtk::attribute::IntItemDefinition
Definition: IntItemDefinition.h:23
smtk::attribute::ItemDefinition::CopyInfo
Definition: ItemDefinition.h:47
smtk::attribute::Item
Definition: Item.h:43
smtkTypeMacro
#define smtkTypeMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:51
smtk::attribute::Attribute
Represent a (possibly composite) value according to a definition.
Definition: Attribute.h:49
smtk::attribute::ItemPtr
smtk::shared_ptr< smtk::attribute::Item > ItemPtr
Definition: PublicPointerDefs.h:467
smtk::attribute::ItemDefinitionPtr
smtk::shared_ptr< smtk::attribute::ItemDefinition > ItemDefinitionPtr
Definition: PublicPointerDefs.h:473
smtk::attribute::ValueItemDefinitionTemplate
Definition: ValueItemDefinitionTemplate.h:26