summaryrefslogtreecommitdiff
path: root/project2/common/library.h
blob: da7a43a75eab5d6addbba6511e891c53bccfd023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef LIBRARY_LOADER_H
#define LIBRARY_LOADER_H

#include "scriptLoader.h"
#include "exceptions.h"
#include "scriptStorage.h"
#include "variables.h"

SimpleMessage2Exception(LoadLibraryFailed);
SimpleMessage2Exception(UnloadLibraryFailed);

class Library : public SourceObject {
	public:
		Library(ScriptNodePtr p);
		~Library();

	private:
		Variable path;
		void * handle;
};
extern STORAGEOF(Library) libraries;

#endif