Commit 845ac1c4 authored by Christof Metzger-Kraus's avatar Christof Metzger-Kraus
Browse files

make method getTypeString static

parent d62a5977
......@@ -149,8 +149,8 @@ const ConstChannel *ElementBase::getConstChannel(const std::string &aKey) const
}
std::string ElementBase::getTypeString() const {
switch (getType()) {
std::string ElementBase::getTypeString(ElementBase::ElementType type) {
switch (type) {
case ALIGNWRAPPER:
return "AlignWrapper";
case BEAMBEAM:
......@@ -304,4 +304,4 @@ void ElementBase::setBoundaryGeometry(BoundaryGeometry *geo) {
void ElementBase::setSurfacePhysics(SurfacePhysicsHandler *sphys) {
sphys_m = sphys;
}
}
\ No newline at end of file
......@@ -181,6 +181,7 @@ public:
virtual ElementType getType() const = 0;
std::string getTypeString() const;
static std::string getTypeString(ElementType type);
/// Get geometry.
// Return the element geometry.
......@@ -498,4 +499,7 @@ inline ElemType ElementBase::getElType() const
inline void ElementBase::setElType(ElemType elt)
{ elType_m = elt;}
#endif // CLASSIC_ElementBase_HH
inline std::string ElementBase::getTypeString() const
{ return getTypeString(getType());}
#endif // CLASSIC_ElementBase_HH
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment