+ el_id = ln;
+ int maxid = std::max (el_root->doc_nbr_elt[el_type], ln+1);
+
+ el_root->doc_nbr_elt[el_type] = maxid;
+ if (defname)
+ el_name = getName (buffer);
+}
+// ========================================================= makeVarName
+char* EltBase::makeVarName (char* nom)
+{
+ static cpchar PREFIX [EL_MAXI] = {"undef", "ver", "edge", "quad", "hexa",
+ "vect", "grid", "cyl", "pipe", "group",
+ "law", "shape", "subsh", "prop",
+ "doc", "Xxxx" };
+ sprintf (nom, "%s%d", PREFIX[el_type], el_id);
+ return nom;
+}
+// ========================================================= debug
+bool EltBase::debug (int niv)
+{
+ return el_root != NULL && el_root->getLevel() > niv ;
+}
+// ========================================================= getNextName
+std::string EltBase::getNextName ()
+{
+ if (el_root != NULL)
+ return el_root->getNextName (el_type);
+
+ char name [16];
+ makeName (el_type, 0, name);
+ return std::string (name);
+}