5 #include "gearcga/CGAGeometryInitializer.h"
14 CGAGeometryInitializer * CGAGeometryInitializer::theInitializer = NULL;
16 CGAGeometryInitializer * CGAGeometryInitializer::GetCGAGeometryInitializer(
17 std::string steeringFile, std::string model,
18 std::string setup, std::string host, std::string user,
19 std::string password) {
21 if(theInitializer == NULL)
22 theInitializer =
new CGAGeometryInitializer(steeringFile,
23 model, setup, host, user, password);
24 return theInitializer;
27 CGAGeometryInitializer::CGAGeometryInitializer(std::string steeringFile,
28 std::string model, std::string setup, std::string host,
29 std::string user, std::string password) {
31 CGAInit(steeringFile.c_str(), model.c_str(), setup.c_str(),
32 host.c_str(), user.c_str(), password.c_str());