return _ze_full_name;
}
+const char *MEDFileFieldRepresentationLeavesArrays::getZeNameC() const
+{
+ return _ze_full_name.c_str();
+}
+
void MEDFileFieldRepresentationLeavesArrays::feedSIL(vtkMutableDirectedGraph* sil, vtkIdType root, vtkVariantArray *edge, std::vector<std::string>& names) const
{
vtkIdType refId(sil->AddChild(root,edge));
return elt.getZeName();
}
+const char *MEDFileFieldRepresentationTree::getNameOfC(int id) const
+{
+ const MEDFileFieldRepresentationLeavesArrays& elt(getLeafArr(id));
+ return elt.getZeNameC();
+}
+
bool MEDFileFieldRepresentationTree::getStatusOf(int id) const
{
const MEDFileFieldRepresentationLeavesArrays& elt(getLeafArr(id));
bool getStatus() const;
bool setStatus(bool status) const;
std::string getZeName() const;
+ const char *getZeNameC() const;
void appendFields(const MEDTimeReq *tr, const ParaMEDMEM::MEDFileFieldGlobsReal *globs, const ParaMEDMEM::MEDMeshMultiLev *mml, const ParaMEDMEM::MEDFileMeshStruct *mst, vtkDataSet *ds) const;
void appendELGAIfAny(vtkDataSet *ds) const;
public:
void feedSIL(vtkMutableDirectedGraph* sil, vtkIdType root, vtkVariantArray *edge, std::vector<std::string>& names) const;
std::string feedSILForFamsAndGrps(vtkMutableDirectedGraph* sil, vtkIdType root, vtkVariantArray *edge, std::vector<std::string>& names) const;
std::string getNameOf(int id) const;
+ const char *getNameOfC(int id) const;
bool getStatusOf(int id) const;
int getIdHavingZeName(const char *name) const;
bool changeStatusOfAndUpdateToHaveCoherentVTKDataSet(int id, bool status) const;
const char *vtkMEDReader::GetFieldsTreeArrayName(int index)
{
- std::string ret(this->Internal->Tree.getNameOf(index));
+ return this->Internal->Tree.getNameOfC(index);
//std::cerr << "vtkMEDReader::GetFieldsTreeArrayName(" << index << ") called ! " << ret << std::endl;
- return ret.c_str();
}
int vtkMEDReader::GetFieldsTreeArrayStatus(const char *name)