4 int main(
int argc,
const char **argv)
10 std::string strExecutablePath, strExeFile;
12 std::string strProjFile =
"";
15 strProjFile = strExecutablePath +
"../Tutorials/Examples/StandAloneSimTest/Bullet_Single_x32_debug.asim";
17 strProjFile = strExecutablePath +
"../Tutorials/Examples/StandAloneSimTest/Bullet_Single_x32.asim";
20 SimulationMgr *lpSimMgr =
new SimulationMgr();
22 SimulationThread *lpThread = lpSimMgr->CreateSimulation(strProjFile);
24 AnimatBase *lpNeuron = lpThread->Sim()->FindByID(
"0825d6e6-ebc4-4d4e-8c87-1fd06f821916");
26 float fltVth = -0.050f;
27 for(
int iIdx=0; iIdx<1; iIdx++)
29 lpNeuron->SetData(
"Vth", fltVth);
31 lpThread->Simulate(0.5f);
36 lpSimMgr->ShutdownAllSimulations();
43 printf(
"Error occurred: %s\n", str) ;
48 printf(
"An Unknown Error occurred.\n") ;
void Std_SplitPathAndFile(std::string &strFullPath, std::string &strPath, std::string &strFile)
Splits the path from the actual filename.
std::string Std_ExecutablePath()
Finds the name and path of the current executable.