|
MOOSE - Multiscale Object Oriented Simulation Environment
|
#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"#include "../utility/print_function.hpp"
Include dependency graph for LoadModels.cpp:Go to the source code of this file.
Functions | |
| bool | findModelParent (Id cwe, const string &path, Id &parentId, string &modelName) |
| ModelType | findModelType (string filename, ifstream &fin, string &line) |
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
Definition at line 81 of file LoadModels.cpp.
References Id::element(), Element::getName(), ObjId::id, Neutral::parent(), Id::path(), and path.
Referenced by Shell::doLoadModel(), and testFindModelParent().
Here is the call graph for this function:
Here is the caller graph for this function:| ModelType findModelType | ( | string | filename, |
| ifstream & | fin, | ||
| string & | line | ||
| ) |
Definition at line 24 of file LoadModels.cpp.
References CSPACE, DOTP, KKIT, SWC, moose::trim(), and UNKNOWN.
Referenced by Shell::doLoadModel().
Here is the call graph for this function:
Here is the caller graph for this function: