Removed an obsolete class
This commit is contained in:
parent
1e7abc562e
commit
51cd9699c3
|
@ -1,40 +0,0 @@
|
||||||
#include "wx/wx.h"
|
|
||||||
#include "catalogresolverthread.h"
|
|
||||||
#include "wraplibxml.h"
|
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
wxCriticalSection catalogResolverCriticalSection;
|
|
||||||
|
|
||||||
CatalogResolverThread::CatalogResolverThread (
|
|
||||||
std::string *publicId,
|
|
||||||
std::string *systemId,
|
|
||||||
bool *finished,
|
|
||||||
const std::string& catalogPath ) : wxThread()//( wxTHREAD_JOINABLE )
|
|
||||||
{
|
|
||||||
myPublicIdPtr = publicId;
|
|
||||||
mySystemIdPtr = systemId;
|
|
||||||
myFinishedPtr = finished;
|
|
||||||
myCatalogPath = catalogPath;
|
|
||||||
|
|
||||||
*myFinishedPtr = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void *CatalogResolverThread::Entry()
|
|
||||||
{
|
|
||||||
{
|
|
||||||
wxCriticalSectionLocker locker ( catalogResolverCriticalSection );
|
|
||||||
|
|
||||||
std::auto_ptr<WrapLibxml> libxml ( new WrapLibxml ( false ) );
|
|
||||||
*mySystemIdPtr = libxml->lookupPublicId ( *myPublicIdPtr );
|
|
||||||
}
|
|
||||||
Exit();
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CatalogResolverThread::OnExit()
|
|
||||||
{
|
|
||||||
{
|
|
||||||
wxCriticalSectionLocker locker ( catalogResolverCriticalSection );
|
|
||||||
*myFinishedPtr = true;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,20 +0,0 @@
|
||||||
#ifndef CATALOG_RESOLVER_THREAD_H
|
|
||||||
#define CATALOG_RESOLVER_THREAD_H
|
|
||||||
|
|
||||||
#include <utility>
|
|
||||||
#include <string>
|
|
||||||
#include <wx/thread.h>
|
|
||||||
|
|
||||||
class CatalogResolverThread : public wxThread
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
CatalogResolverThread ( std::string *publicId, std::string *systemId, bool *finished, const std::string& catalogPath );
|
|
||||||
virtual void *Entry();
|
|
||||||
virtual void OnExit();
|
|
||||||
private:
|
|
||||||
std::string *myPublicIdPtr, *mySystemIdPtr;
|
|
||||||
std::string myCatalogPath;
|
|
||||||
bool *myFinishedPtr;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
Reference in New Issue