cgma
GeometryContext::NamedEntity Class Reference

List of all members.

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 NamedEntitymakeCellIDName (iBase_EntityHandle h, int ident)

Protected Attributes

iBase_EntityHandle handle
std::string name

Detailed Description

Definition at line 219 of file mcnp2cad.cpp.


Constructor & Destructor Documentation

GeometryContext::NamedEntity::NamedEntity ( iBase_EntityHandle  handle_p,
std::string  name_p = "" 
) [inline]

Definition at line 224 of file mcnp2cad.cpp.

                                                                     :
      handle(handle_p), name(name_p)
    {}
virtual GeometryContext::NamedEntity::~NamedEntity ( ) [inline, virtual]

Definition at line 227 of file mcnp2cad.cpp.

{}

Member Function Documentation

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;
    }

Definition at line 232 of file mcnp2cad.cpp.

                                               {
      handle = new_h;
    }

Member Data Documentation

std::string GeometryContext::NamedEntity::name [protected]

Definition at line 222 of file mcnp2cad.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines