Nebula
Loading...
Searching...
No Matches
resourcesaver.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10#include "core/refcounted.h"
11#include "io/uri.h"
12#include "resourceid.h"
13namespace Resources
14{
16{
18public:
22 virtual ~ResourceSaver();
23
25 {
26 Success, // save successful
27 Failed // save failed
28 };
29
31 virtual SaveStatus Save(const Resources::ResourceId id, IO::URI path) = 0;
32};
33} // namespace Resources
The common base class of Nebula.
Definition refcounted.h:38
An URI object can split a Uniform Resource Identifier string into its components or build a string fr...
Definition uri.h:67
Definition resourcesaver.h:16
SaveStatus
Definition resourcesaver.h:25
@ Success
Definition resourcesaver.h:26
@ Failed
Definition resourcesaver.h:27
virtual ~ResourceSaver()
destructor
Definition resourcesaver.cc:23
__DeclareAbstractClass(ResourceSaver)
virtual SaveStatus Save(const Resources::ResourceId id, IO::URI path)=0
save resource to path
ResourceSaver()
constructor
Definition resourcesaver.cc:15
A resource is a container for some type of file which is loaded.
Definition resource.cc:9