00001
00002
00003 #include "stdafx.h"
00004 #include "sword2net.h"
00005 #include <swmgr.h>
00006 #include <swmodule.h>
00007 using namespace sword;
00008 using namespace sword2net;
00009 using namespace System;
00010 using namespace System::Collections;
00011
00012
00013 SwordLibrary::SwordLibrary(void)
00014 {
00015
00016 }
00017
00018
00019 List<String^>^ SwordLibrary::GetSwordModules(String^ modType){
00020
00021 List<String^>^ modules= gcnew List<String^>();
00022 SWMgr library;
00023 ModMap::iterator sword_modules;
00024 for (sword_modules = library.Modules.begin(); sword_modules != library.Modules.end(); sword_modules++)
00025 {
00026 SWModule *module = (*sword_modules).second;
00027 if (0==String::Compare(gcnew String(module->Type()), modType,false))
00028 modules->Add(gcnew String(module->Name()));
00029 }
00030 return modules;
00031 };