Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CrayzeeWulf
Xdmf
Commits
c04961b4
Commit
c04961b4
authored
May 17, 2011
by
Kenneth Leiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: Add method to getName of XdmfArrayType as a string (useful when printing
error messages in client codes).
parent
ea5dbd14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
core/XdmfArrayType.cpp
core/XdmfArrayType.cpp
+6
-0
core/XdmfArrayType.hpp
core/XdmfArrayType.hpp
+7
-0
No files found.
core/XdmfArrayType.cpp
View file @
c04961b4
...
@@ -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
{
{
...
...
core/XdmfArrayType.hpp
View file @
c04961b4
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment