Allow ServerContextImpl to be created w/ specific conf.
This commit is contained in:
@@ -51,13 +51,22 @@ ServerContextImpl::ServerContextImpl():
|
||||
epicsSignalInstallSigPipeIgnore ();
|
||||
|
||||
generateGUID();
|
||||
initializeLogger();
|
||||
loadConfiguration();
|
||||
initializeLogger();
|
||||
}
|
||||
|
||||
ServerContextImpl::shared_pointer ServerContextImpl::create()
|
||||
{
|
||||
ServerContextImpl::shared_pointer thisPointer(new ServerContextImpl());
|
||||
thisPointer->loadConfiguration();
|
||||
return thisPointer;
|
||||
}
|
||||
|
||||
ServerContextImpl::shared_pointer ServerContextImpl::create(
|
||||
const Configuration::shared_pointer& conf)
|
||||
{
|
||||
ServerContextImpl::shared_pointer thisPointer(new ServerContextImpl());
|
||||
thisPointer->configuration = conf;
|
||||
thisPointer->loadConfiguration();
|
||||
return thisPointer;
|
||||
}
|
||||
|
||||
|
||||
@@ -116,10 +116,11 @@ class epicsShareClass ServerContextImpl :
|
||||
public:
|
||||
typedef std::tr1::shared_ptr<ServerContextImpl> shared_pointer;
|
||||
typedef std::tr1::shared_ptr<const ServerContextImpl> const_shared_pointer;
|
||||
protected:
|
||||
private:
|
||||
ServerContextImpl();
|
||||
public:
|
||||
static shared_pointer create();
|
||||
static shared_pointer create(const Configuration::shared_pointer& conf);
|
||||
|
||||
virtual ~ServerContextImpl();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user