9 #include "../src_cpp/StockManager.h"
11 #include "../src_cpp/TCPServer.h"
20 int main(
int argc,
char **argv)
27 TRint* theApp =
new TRint(
"app",&argc,argv,0,0,kTRUE);
39 boost::asio::io_service io_service;
48 std::cout <<
"GetStatus StockManager " << fstockmanager->
GetStatus() << std::endl;
49 std::cout <<
"GetStatus StockManager::GetStatusServer " << fstockmanager->GetStatusServer() << std::endl;
Singleton class, stores all loaded stocks.
bool GetStatus() const
Indicates if the singleton has been initialized or is still valide.
void SetServer(TCPServer *tcp)
static StockManager * getInstance(std::string new_path=".")
Get a singleton instance.
int main(int argc, char **argv)
Use with RealTime to receive messages from python ServerPortfolio.
std::string GetPathData()