mirror of https://gitlab.com/cppit/jucipp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
608 B
13 lines
608 B
|
11 years ago
|
#include "singletons.h"
|
||
|
|
|
||
|
11 years ago
|
std::unique_ptr<Source::Config> Singleton::Config::source_=std::unique_ptr<Source::Config>(new Source::Config());
|
||
|
|
std::unique_ptr<Terminal::Config> Singleton::Config::terminal_=std::unique_ptr<Terminal::Config>(new Terminal::Config());
|
||
|
|
std::unique_ptr<Directories::Config> Singleton::Config::directories_=std::unique_ptr<Directories::Config>(new Directories::Config());
|
||
|
|
|
||
|
11 years ago
|
std::unique_ptr<Terminal> Singleton::terminal_=std::unique_ptr<Terminal>();
|
||
|
|
Terminal *Singleton::terminal() {
|
||
|
11 years ago
|
if(!terminal_)
|
||
|
11 years ago
|
terminal_=std::unique_ptr<Terminal>(new Terminal());
|
||
|
11 years ago
|
return terminal_.get();
|
||
|
|
}
|