00001
00002
00003 #ifndef COMPILE_OBJECT_H
00004 #define COMPILE_OBJECT_H
00005
00006 #include <string>
00007 #include "DLManager.h"
00008
00009 namespace FD {
00010
00011 class CompileObject {
00012 std::string code;
00013 std::string symname;
00014 std::string filename;
00015 DL_HANDLE_TYPE lib;
00016 void *sym;
00017 public:
00018 CompileObject(const std::string &_code="");
00019 ~CompileObject();
00020 void setCode(const std::string &_code) {code = _code;}
00021 void compile();
00022 void *getFuncPtr() {return sym;}
00023 };
00024 }
00025 #endif