Commit c04961b4 authored by Kenneth Leiter's avatar Kenneth Leiter

ENH: Add method to getName of XdmfArrayType as a string (useful when printing

error messages in client codes).
parent ea5dbd14
...@@ -172,6 +172,12 @@ XdmfArrayType::getElementSize() const ...@@ -172,6 +172,12 @@ XdmfArrayType::getElementSize() const
return mPrecision; return mPrecision;
} }
std::string
XdmfArrayType::getName() const
{
return mName;
}
void void
XdmfArrayType::getProperties(std::map<std::string, std::string> & collectedProperties) const XdmfArrayType::getProperties(std::map<std::string, std::string> & collectedProperties) const
{ {
......
...@@ -76,6 +76,13 @@ public: ...@@ -76,6 +76,13 @@ public:
*/ */
unsigned int getElementSize() const; unsigned int getElementSize() const;
/**
* Get the name of the data type.
*
* @return the name of the data type.
*/
std::string getName() const;
void void
getProperties(std::map<std::string, std::string> & collectedProperties) const; getProperties(std::map<std::string, std::string> & collectedProperties) const;
......
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