SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
DirectoryItemDefinition.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 DirectoryItemDefinition.h -
11 // .SECTION Description
12 // .SECTION See Also
13 
14 #ifndef smtk_attribute_DirectoryItemDefinition_h
15 #define smtk_attribute_DirectoryItemDefinition_h
16 
17 #include "smtk/CoreExports.h"
18 #include "smtk/PublicPointerDefs.h"
19 
20 #include "smtk/attribute/FileSystemItemDefinition.h"
21 
22 namespace smtk
23 {
24 namespace attribute
25 {
26 class SMTKCORE_EXPORT DirectoryItemDefinition : public FileSystemItemDefinition
27 {
28 public:
30  static smtk::attribute::DirectoryItemDefinitionPtr New(const std::string& myName)
31  {
33  }
34 
35  ~DirectoryItemDefinition() override;
36 
37  Item::Type type() const override;
38 
39  smtk::attribute::ItemPtr buildItem(Attribute* owningAttribute, int itemPosition) const override;
40  smtk::attribute::ItemPtr buildItem(Item* owningItem, int position, int subGroupPosition)
41  const override;
42 
44  smtk::attribute::ItemDefinition::CopyInfo& info) const override;
45 
46 protected:
47  DirectoryItemDefinition(const std::string& myName);
48 
49 private:
50 };
51 } // namespace attribute
52 } // namespace smtk
53 
54 #endif /* smtk_attribute_DirectoryItemDefinition_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::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::DirectoryItemDefinition
Definition: DirectoryItemDefinition.h:26
smtk::attribute::DirectoryItemDefinitionPtr
smtk::shared_ptr< smtk::attribute::DirectoryItemDefinition > DirectoryItemDefinitionPtr
Definition: PublicPointerDefs.h:493
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::FileSystemItemDefinition
Definition: FileSystemItemDefinition.h:27
smtk::attribute::ItemDefinitionPtr
smtk::shared_ptr< smtk::attribute::ItemDefinition > ItemDefinitionPtr
Definition: PublicPointerDefs.h:473