cgma
|
Public Member Functions | |
NamedEntity (iBase_EntityHandle handle_p, std::string name_p="") | |
virtual | ~NamedEntity () |
const std::string & | getName () const |
iBase_EntityHandle | getHandle () const |
void | setHandle (iBase_EntityHandle new_h) |
Static Public Member Functions | |
static NamedEntity * | makeCellIDName (iBase_EntityHandle h, int ident) |
Protected Attributes | |
iBase_EntityHandle | handle |
std::string | name |
Definition at line 219 of file mcnp2cad.cpp.
GeometryContext::NamedEntity::NamedEntity | ( | iBase_EntityHandle | handle_p, |
std::string | name_p = "" |
||
) | [inline] |
Definition at line 224 of file mcnp2cad.cpp.
virtual GeometryContext::NamedEntity::~NamedEntity | ( | ) | [inline, virtual] |
Definition at line 227 of file mcnp2cad.cpp.
{}
iBase_EntityHandle GeometryContext::NamedEntity::getHandle | ( | ) | const [inline] |
Definition at line 230 of file mcnp2cad.cpp.
{ return handle; }
const std::string& GeometryContext::NamedEntity::getName | ( | ) | const [inline] |
Definition at line 229 of file mcnp2cad.cpp.
{ return name; }
static NamedEntity* GeometryContext::NamedEntity::makeCellIDName | ( | iBase_EntityHandle | h, |
int | ident | ||
) | [inline, static] |
Definition at line 236 of file mcnp2cad.cpp.
{ NamedEntity* e = new NamedEntity(h); std::stringstream formatter; formatter << "MCNP_ID_" << ident; formatter >> e->name; return e; }
void GeometryContext::NamedEntity::setHandle | ( | iBase_EntityHandle | new_h | ) | [inline] |
Definition at line 232 of file mcnp2cad.cpp.
{ handle = new_h; }
Definition at line 221 of file mcnp2cad.cpp.
std::string GeometryContext::NamedEntity::name [protected] |
Definition at line 222 of file mcnp2cad.cpp.