[GME-commit]
GMESRC/Paradigms/MetaGME/BonExtension/Rep Any.cpp,1.7,1.8
FCO.cpp,1.12,1.13 MakeVisitor.cpp,1.3,1.4
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Thu May 6 18:30:28 CDT 2004
Update of /var/lib/gme/GMESRC/Paradigms/MetaGME/BonExtension/Rep
In directory braindrain:/tmp/cvs-serv8100/BonExtension/Rep
Modified Files:
Any.cpp FCO.cpp MakeVisitor.cpp
Log Message:
A few verbose error messages introduced.
CVS User: zolmol
Index: Any.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/Paradigms/MetaGME/BonExtension/Rep/Any.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Any.cpp 17 Mar 2004 02:43:03 -0000 1.7
--- Any.cpp 6 May 2004 22:30:26 -0000 1.8
***************
*** 228,233 ****
std::string h, s;
! h = "class " + getDispNameImpl() + ";";
! h += "\nDECLARE_BONEXTENSION( BON::" + getMyKindStr() + ", " + getDispNameImpl() + ", " + getDispName() + " );\n";
s = "IMPLEMENT_BONEXTENSION( " + global_vars.m_namespace_name + "::" + getDispName() + ", \"" + dumpMyKind() + "\" );\n";
--- 228,233 ----
std::string h, s;
! //h = "class " + getDispNameImpl() + ";\n"; removed on 5/6/2004 not needed
! h = "DECLARE_BONEXTENSION( BON::" + getMyKindStr() + ", " + getDispNameImpl() + ", " + getDispName() + " );\n";
s = "IMPLEMENT_BONEXTENSION( " + global_vars.m_namespace_name + "::" + getDispName() + ", \"" + dumpMyKind() + "\" );\n";
Index: FCO.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/Paradigms/MetaGME/BonExtension/Rep/FCO.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** FCO.cpp 17 Mar 2004 20:39:08 -0000 1.12
--- FCO.cpp 6 May 2004 22:30:26 -0000 1.13
***************
*** 763,768 ****
if ( bases.empty())
{
! h = "class " + getDispNameImpl() + ";";
! h += "\nDECLARE" + abstract_str + "_BONEXTENSION( BON::";
h += getMyKindStr() + ", " + getDispNameImpl() + ", " + getDispName() + " );\n";
}
--- 763,768 ----
if ( bases.empty())
{
! //h = "class " + getDispNameImpl() + ";\n"; commented out on 5/6/2004 not needed
! h = "DECLARE" + abstract_str + "_BONEXTENSION( BON::";
h += getMyKindStr() + ", " + getDispNameImpl() + ", " + getDispName() + " );\n";
}
***************
*** 790,795 ****
base_list = "BON::" + getMyKindStr() + ", " + base_list;
}
! h = "class " + getDispNameImpl() + ";";
! h += "\nDECLARE" + abstract_str + "_BONEXTENSION" + no_of_bases_str + "( " + base_list + getDispNameImpl() + ", " + getDispName() + " );\n";
}
if ( m_isAbstract && !dump_Non_Exted_Desc_Kinds.empty()) // if abstract and responsible for its descendants
--- 790,795 ----
base_list = "BON::" + getMyKindStr() + ", " + base_list;
}
! //h = "class " + getDispNameImpl() + ";\n"; commented out on 5/6/2004 not needed
! h = "DECLARE" + abstract_str + "_BONEXTENSION" + no_of_bases_str + "( " + base_list + getDispNameImpl() + ", " + getDispName() + " );\n";
}
if ( m_isAbstract && !dump_Non_Exted_Desc_Kinds.empty()) // if abstract and responsible for its descendants
Index: MakeVisitor.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/Paradigms/MetaGME/BonExtension/Rep/MakeVisitor.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** MakeVisitor.cpp 2 Feb 2004 21:36:26 -0000 1.3
--- MakeVisitor.cpp 6 May 2004 22:30:26 -0000 1.4
***************
*** 107,114 ****
mmm+="bool " + m_className + "::visit" + name + "( const " + name + "& object )\n";
mmm+="{\n";
! mmm+=" if ( !object)\n";
! mmm+=" return false;\n";
mmm+="\n";
! mmm+=" return true;\n";
mmm+="}\n\n\n";
--- 107,114 ----
mmm+="bool " + m_className + "::visit" + name + "( const " + name + "& object )\n";
mmm+="{\n";
! mmm+=" if ( !object)\n";
! mmm+=" return false;\n";
mmm+="\n";
! mmm+=" return true;\n";
mmm+="}\n\n\n";
More information about the GME-commit
mailing list