SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
VoidItem.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 VoidItem.h -
11 // .SECTION Description
12 // .SECTION See Also
13 
14 #ifndef smtk_attribute_VoidItem_h
15 #define smtk_attribute_VoidItem_h
16 
17 #include "smtk/CoreExports.h"
18 #include "smtk/PublicPointerDefs.h"
19 #include "smtk/attribute/Item.h"
20 #include <vector>
21 
22 namespace smtk
23 {
24 namespace attribute
25 {
26 class VoidItemDefinition;
27 class SMTKCORE_EXPORT VoidItem : public Item
28 {
29  friend class VoidItemDefinition;
30 
31 public:
33  ~VoidItem() override;
34  Item::Type type() const override;
35 
36 protected:
37  VoidItem(Attribute* owningAttribute, int itemPosition);
38  VoidItem(Item* owningItem, int myPosition, int mySubGroupPosition);
39  bool setDefinition(smtk::attribute::ConstItemDefinitionPtr def) override;
40  bool isValidInternal(bool useCategories, const std::set<std::string>& categories) const override;
41 
42 private:
43 };
44 } // namespace attribute
45 } // namespace smtk
46 
47 #endif /* smtk_attribute_VoidItem_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
PublicPointerDefs.h
smtk::attribute::ConstItemDefinitionPtr
smtk::shared_ptr< const smtk::attribute::ItemDefinition > ConstItemDefinitionPtr
Definition: PublicPointerDefs.h:475
smtk::attribute::VoidItemDefinition
Definition: VoidItemDefinition.h:26
smtk::attribute::Item
Definition: Item.h:43
smtkTypeMacro
#define smtkTypeMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:51
smtk::attribute::VoidItem
Definition: VoidItem.h:27
smtk::attribute::Attribute
Represent a (possibly composite) value according to a definition.
Definition: Attribute.h:49