PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
Loader.h
Go to the documentation of this file.
1//* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
3// Name: src/base/Loader.h
4// Purpose: Defines an class that loads functions into PEBL environment.
5// Author: Shane T. Mueller, Ph.D.
6// Copyright: (c) 2003-2026 Shane T. Mueller <smueller@obereed.net>
7// License: GPL 2
8//
9//
10//
11//
12// This file is part of the PEBL project.
13//
14// PEBL is free software; you can redistribute it and/or modify
15// it under the terms of the GNU General Public License as published by
16// the Free Software Foundation; either version 2 of the License, or
17// (at your option) any later version.
18//
19// PEBL is distributed in the hope that it will be useful,
20// but WITHOUT ANY WARRANTY; without even the implied warranty of
21// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22// GNU General Public License for more details.
23//
24// You should have received a copy of the GNU General Public License
25// along with PEBL; if not, write to the Free Software
26// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28
29#ifndef __LOADER_H__
30#define __LOADER_H__
31
32#include "PNode.h"
33#include "Variant.h"
34#include "VariableMap.h"
35#include "FunctionMap.h"
36
37#include <set>
38#include <map>
39
40
47class Loader
48{
49public:
50 Loader();
51 ~Loader();
52
53
58 void FindFunctions(const PNode * Node);
59
60
63 void LoadUserFunctions(OpNode * node);
64
65
69
72 bool Verify();
73
74
78
79 void DumpFunctionSet();
80
81private:
82
85 std::set<Variant> mFunctionSet;
86
87
88};
89
90
91#endif
~Loader()
Definition Loader.cpp:74
void DumpFunctionSet()
Definition Loader.cpp:385
void LoadUserFunctions(OpNode *node)
Definition Loader.cpp:147
void LoadLibraryFunctions()
Definition Loader.cpp:195
void FindFunctions(const PNode *Node)
Definition Loader.cpp:88
Loader()
Definition Loader.cpp:69
bool Verify()
Definition Loader.cpp:365
PNode * GetMainPEBLFunction()
Definition Loader.cpp:372
Definition PNode.h:45