29#ifndef NOMLIB_SYSTEM_RESOURCE_FILE_HPP
30#define NOMLIB_SYSTEM_RESOURCE_FILE_HPP
36#include "nomlib/config.hpp"
96 const std::string&
name(
void )
const;
99 const std::string&
path(
void )
const;
104 ResourceFile::Type
type(
void )
const;
106 bool loaded(
void )
const;
117 void set_loaded(
bool state );
ResourceFile(const std::string &name, const std::string &file_path)
Construct a minimal, but valid resource.
ResourceFile(const std::string &name)
Construct an invalid resource.
const std::string & path(void) const
Get the absolute file path to the resource.
bool loaded_
Initialized resource object state.
ResourceFile::Type type_
The description of the resource.
void set_name(const std::string &name)
Set the resource's name.
std::string name_
The resource's referenced name (think: key).
virtual ~ResourceFile(void)
Destructor.
ResourceFile(void)
Default constructor; initialize resource to an invalid state.
std::string path_
The absolute file path to the resource.
bool operator==(const self_type &rhs) const
Equality comparison method overload.
ResourceFile(const std::string &name, const std::string &file_path, ResourceFile::Type type)
Construct a complete resource.
const std::string & name(void) const
Get the name of the resource.
bool operator<(const self_type &rhs) const
Lesser-than comparison method overload.
bool exists(void) const
Get the status of resource existence at the file-system level.
void set_type(ResourceFile::Type type)
Set the resource's type.
void set_path(const std::string &file_path)
Set the resource's absolute file path.
ResourceFile::Type type(void) const
Get the resource's type.