#include <fstream>
#include "header.h"
#include "Shell.h"
#include "../utility/strutil.h"
#include "../utility/Vec.h"
#include "LoadModels.h"
#include "../biophysics/ReadCell.h"
#include "../biophysics/SwcSegment.h"
#include "../biophysics/ReadSwc.h"
#include "../kinetics/ReadKkit.h"
#include "../kinetics/ReadCspace.h"
Functions | |
ModelType | findModelType (string filename, ifstream &fin, string &line) |
bool | findModelParent (Id cwe, const string &path, Id &parentId, string &modelName) |
Identify parent Id from path that can optionally have the model name as the last part. Pass back the parent Id, and the model name. Returns true on success. Cases: First set: we want to fill in "model" as modelName "" where we want <cwe>/model "/" where we want /model. "/foo" where foo exists, so we want /foo/model "foo" where <cwe>/foo exists, and we want <cwe>/foo/model Second set: the last part of the path has the model name. "bar" where we want <cwe>/bar "/bar" where we want /bar "/foo/bar" where we want /foo/bar "foo/bar" where we want <cwe>/foo/bar
References Id::element(), Element::getName(), ObjId::id, Neutral::parent(), and Id::path().
Referenced by testFindModelParent().