ImageResources.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
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 #include <map>
20 
21 namespace cee {
22 
23 class Image;
24 
25 //==================================================================================================
26 //
27 //
28 //
29 //==================================================================================================
30 class CEE_CORE_EXPORT ImageResources : public RefCountedObject
31 {
32 public:
34  virtual ~ImageResources();
35 
36  Image* imageResource(const Str& resourceName);
37  void addImageResource(const Str& resourceName, Image* image);
38 
39  std::map<Str, const Image*> allImageResources() const;
40 
41 private:
42  CEE_PRIVATE_IMPL(ImageResources);
43  CEE_DISALLOW_COPY_AND_ASSIGN(ImageResources);
44 };
45 
46 } // namespace cee
Stores an RGBA image with 8 bits per pixel.
Definition: Image.h:25
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppAssert.cpp:18
A general unicode based string class.
Definition: Str.h:28
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
Class for storing image resources.
Definition: ImageResources.h:30