2 * Name: CInstructionFactory
3 * Author: Martin Perner, 0725782, 535
4 * E-Mail: e0725782@student.tuwien.ac.at
5 * Purpose: Factory for creating commands from shared libraries
9 #ifndef __CINSTRUCTIONFACTORY_H__
10 #define __CINSTRUCTIONFACTORY_H__
28 * Name: CInstructionFactory
29 * Purpose: Factory for creating commands from shared libraries
33 std::map<void*, Iinstr*> m_libStore;
34 std::vector<std::string> m_files;
36 Iinstr* loadFromLib(std::string lib);
38 Iinstr* getNextInstr();
40 size_t searchLibsInDir(std::string dir);
41 void loadLibsIntoMap(map<short, Iinstr*>& instr, string dir);
42 CInstrFactory() : m_libStore(), m_files() {};