GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
CGAGeometryInitializer.cc
1 #include <string>
2 #include <vector>
3 
4 #include "gear/GEAR.h"
5 #include "gearcga/CGAGeometryInitializer.h"
6 #include "CGADefs.h"
7 
8 namespace gear {
9 
14  CGAGeometryInitializer * CGAGeometryInitializer::theInitializer = NULL;
15 
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) {
20 
21  if(theInitializer == NULL)
22  theInitializer = new CGAGeometryInitializer(steeringFile,
23  model, setup, host, user, password);
24  return theInitializer;
25  }
26 
27  CGAGeometryInitializer::CGAGeometryInitializer(std::string steeringFile,
28  std::string model, std::string setup, std::string host,
29  std::string user, std::string password) {
30 
31  CGAInit(steeringFile.c_str(), model.c_str(), setup.c_str(),
32  host.c_str(), user.c_str(), password.c_str());
33 
34  }
35 
36 } // namespace gear