Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
librarybase.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
11
#include "
util/string.h
"
12
#include "
io/uri.h
"
13
#include "
io/stream.h
"
14
15
//------------------------------------------------------------------------------
16
namespace
Base
17
{
18
class
Library
19
{
20
public
:
22
Library
();
23
25
void
SetPath
(
const
IO::URI
& uri);
26
28
virtual
bool
Load
() = 0;
30
virtual
void
Close
() = 0;
32
virtual
void
*
GetExport
(
Util::String
const
& name)
const
= 0;
34
virtual
bool
IsLoaded
() = 0;
35
36
protected
:
37
bool
isLoaded
;
38
IO::URI
path
;
39
};
40
41
//------------------------------------------------------------------------------
44
inline
Library::Library
()
45
:
isLoaded
(false)
46
{
47
// empty
48
}
49
50
//------------------------------------------------------------------------------
53
inline
void
54
Library::SetPath
(
const
IO::URI
& uri)
55
{
56
this->
path
= uri;
57
}
58
59
}
// namespace Base
60
//------------------------------------------------------------------------------
Base::Library::Library
Library()
constructor
Definition
librarybase.h:44
Base::Library::Close
virtual void Close()=0
close the library
Base::Library::GetExport
virtual void * GetExport(Util::String const &name) const =0
get address to exported function (ex. GetProcAddress)
Base::Library::SetPath
void SetPath(const IO::URI &uri)
set the executable path
Definition
librarybase.h:54
Base::Library::isLoaded
bool isLoaded
Definition
librarybase.h:37
Base::Library::IsLoaded
virtual bool IsLoaded()=0
gets the state of the library
Base::Library::path
IO::URI path
Definition
librarybase.h:38
Base::Library::Load
virtual bool Load()=0
load library
IO::URI
An URI object can split a Uniform Resource Identifier string into its components or build a string fr...
Definition
uri.h:67
Base
Definition
gamecontentserverbase.cc:10
stream.h
string.h
Util.String
Nebula's universal string class.
Definition
String.cs:8
uri.h
code
foundation
system
base
librarybase.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.