PropertySetCollection.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: Core
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2011, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeCore/Base.h"
16 #include "CeeCore/RefCountedObject.h"
17 #include "CeeCore/Str.h"
18 
19 namespace cee {
20 
21 class PropertySet;
22 
23 
24 //==================================================================================================
25 //
26 //
27 //
28 //==================================================================================================
29 class CEE_CORE_EXPORT PropertySetCollection : public RefCountedObject
30 {
31 public:
34  virtual ~PropertySetCollection();
35 
36  PropertySetCollection& operator=(const PropertySetCollection& rhs);
37 
38  size_t count() const;
39  PropertySet* propertySet(size_t index);
40  const PropertySet* propertySet(size_t index) const;
41  void addPropertySet(PropertySet* propertySet);
42 
43  size_t countOfType(const Str& classType) const;
44  PropertySet* propertySetOfType(const Str& classType, size_t index);
45  const PropertySet* propertySetOfType(const Str& classType, size_t index) const;
46 
47 private:
48  CEE_PRIVATE_IMPL(PropertySetCollection);
49 };
50 
51 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
A general unicode based string class.
Definition: Str.h:28
A property set stores a set of properties each consisting of a key and a value.
Definition: PropertySet.h:28
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
A collection of property sets.
Definition: PropertySetCollection.h:29