return m_files.size();
}
+void CInstrFactory::loadLibsIntoMap(map<short, Iinstr*>& instr, string dir)
+{
+#ifdef DEBUG
+ cout << "Loaded " << this->searchLibsInDir(dir) << " Libraryfiles" << endl;
+#else
+ this->searchLibsInDir(dir);
+#endif
+ while(this->getNumFiles() >= 1) {
+ Iinstr* pinstr = this->getNextInstr();
+ instr.insert(make_pair(pinstr->getOpcode(),pinstr));
+#ifdef DEBUG
+ cout << "found: " << pinstr->getName() << " its opcode is : " << pinstr->getOpcode() << endl;
+#endif
+ }
+}
+
+
/**
* Name: ~CInstrFactory
* Purpose: Destructor of the Object