[GME-commit] GMESRC/Paradigms/MetaGME/MetaInterpreter2004/Rep
AttributeRep.cpp,1.6,1.7
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Thu Oct 21 12:18:24 CDT 2004
- Previous message: [GME-commit]
GMESRC/Paradigms/MetaGME/BonExtension/Rep Any.cpp,1.12,1.13
Any.h,1.9,1.10 Dumper.cpp,1.13,1.14 Dumper.h,1.7,1.8
FCO.cpp,1.18,1.19 Sheet.cpp,1.9,1.10 Sheet.h,1.8,1.9
- Next message: [GME-commit]
GMESRC/SDK/BON/stlport algorithm,1.1.1.1,NONE bitset,1.1.1.1,NONE
cassert,1.1.1.1,NONE cctype,1.1.1.1,NONE cerrno,1.1.1.1,NONE
cfloat,1.1.1.1,NONE climits,1.1.1.1,NONE clocale,1.1.1.1,NONE
cmath,1.1.1.1,NONE complex,1.1.1.1,NONE csetjmp,1.1.1.1,NONE
csignal,1.1.1.1,NONE cstdarg,1.1.1.1,NONE cstddef,1.1.1.1,NONE
cstdio,1.1.1.1,NONE cstdlib,1.1.1.1,NONE cstring,1.1.1.1,NONE
ctime,1.1.1.1,NONE ctype.h,1.1.1.1,NONE cwchar,1.1.1.1,NONE
cwctype,1.1.1.1,NONE deque,1.1.1.1,NONE exception,1.1.1.1,NONE
exception.h,1.1.1.1,NONE export,1.1.1.1,NONE
export.sun,1.1.1.1,NONE fstream,1.1.1.1,NONE fstream.h,1.1.1.1,NONE
functional,1.1.1.1,NONE hash_map,1.1.1.1,NONE hash_set,1.1.1.1,NONE
iomanip,1.1.1.1,NONE iomanip.h,1.1.1.1,NONE ios,1.1.1.1,NONE
ios.h,1.1.1.1,NONE iosfwd,1.1.1.1,NONE iostream,1.1.1.1,NONE
iostream.h,1.1.1.1,NONE istream,1.1.1.1,NONE istream.h,1.1.1.1,NONE
iterator,1.1.1.1,NONE limits,1.1.1.1,NONE list,1.1.1.1,NONE
locale,1.1.1.1,NONE locale.h,1.1.1.1,NONE map,1.1.1.1,NONE
math.h,1.1.1.1,NONE mem.h,1.1.1.1,NONE memory,1.1.1.1,NONE
mmemory.h,1.1.1.1,NONE new,1.1.1.1,NONE new.h,1.1.1.1,NONE
numeric,1.1.1.1,NONE ostream,1.1.1.1,NONE ostream.h,1.1.1.1,NONE
pthread.h,1.1.1.1,NONE pthread_alloc,1.1.1.1,NONE
queue,1.1.1.1,NONE rlocks.h,1.1.1.1,NONE rope,1.1.1.1,NONE
set,1.1.1.1,NONE setjmp.h,1.1.1.1,NONE signal.h,1.1.1.1,NONE
slist,1.1.1.1,NONE sstream,1.1.1.1,NONE stack,1.1.1.1,NONE
stdarg.h,1.1.1.1,NONE stddef.h,1.1.1.1,NONE stdexcept,1.1.1.1,NONE
stdio.h,1.1.1.1,NONE stdio_streambuf,1.1.1.1,NONE
stdiostream.h,1.1.1.1,NONE stdlib.h,1.1.1.1,NONE
stl_user_config.h,1.1.1.1,NONE streambuf,1.1.1.1,NONE
streambuf.h,1.1.1.1,NONE string,1.1.1.1,NONE string.h,1.1.1.1,NONE
strstream,1.1.1.1,NONE strstream.h,1.1.1.1,NONE time.h,1.1.1.1,NONE
typeinfo,1.1.1.1,NONE typeinfo.h,1.1.1.1,NONE utility,1.1.1.1,NONE
valarray,1.1.1.1,NONE vector,1.1.1.1,NONE wchar.h,1.1.1.1,NONE
wctype.h,1.1.1.1,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/gme/GMESRC/Paradigms/MetaGME/MetaInterpreter2004/Rep
In directory braindrain:/tmp/cvs-serv21769
Modified Files:
AttributeRep.cpp
Log Message:
Handling empty EnumAttrs. Write error messages.
CVS User: zolmol
Index: AttributeRep.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/Paradigms/MetaGME/MetaInterpreter2004/Rep/AttributeRep.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** AttributeRep.cpp 30 Jul 2004 00:10:23 -0000 1.6
--- AttributeRep.cpp 21 Oct 2004 16:18:21 -0000 1.7
***************
*** 192,195 ****
--- 192,199 ----
}
+ if( m_noOfItems == 0)
+ global_vars.err << MSG_ERROR << "Error: No enumeration items found. Please check: " << getPtr() << ".\n";
+
+ bool filled_def_item = m_ptr->getAttribute( "DefaultItem")->getStatus() >= BON::AS_Here;
std::string def_item = Dumper::xmlFilter( m_ptr->getAttribute("DefaultItem")->getStringValue());
***************
*** 202,206 ****
}
! if (found) m_noOfDefault = i;
return true;
--- 206,213 ----
}
! if (found)
! m_noOfDefault = i;
! else if( filled_def_item)
! global_vars.err << MSG_ERROR << "Error: Default enumitem not found among enumerated items at " << getPtr() << ".\n";
return true;
***************
*** 215,219 ****
std::string m_ref = getMetaRef( owner);
mmm += indStr() + "<attrdef name=\"" + getName() + "\" metaref = \"" + m_ref +"\" valuetype = \"enum\" defvalue = \"";
! mmm += m_itemsVal[m_noOfDefault];
mmm += "\">\n";
--- 222,230 ----
std::string m_ref = getMetaRef( owner);
mmm += indStr() + "<attrdef name=\"" + getName() + "\" metaref = \"" + m_ref +"\" valuetype = \"enum\" defvalue = \"";
! if( m_noOfDefault < m_itemsVal.size())
! mmm += m_itemsVal[m_noOfDefault];
! else
! global_vars.err << MSG_ERROR << "Error: Default enumitem not found in vector of enumerated items. Please check: " << getPtr() << ".\n";
!
mmm += "\">\n";
- Previous message: [GME-commit]
GMESRC/Paradigms/MetaGME/BonExtension/Rep Any.cpp,1.12,1.13
Any.h,1.9,1.10 Dumper.cpp,1.13,1.14 Dumper.h,1.7,1.8
FCO.cpp,1.18,1.19 Sheet.cpp,1.9,1.10 Sheet.h,1.8,1.9
- Next message: [GME-commit]
GMESRC/SDK/BON/stlport algorithm,1.1.1.1,NONE bitset,1.1.1.1,NONE
cassert,1.1.1.1,NONE cctype,1.1.1.1,NONE cerrno,1.1.1.1,NONE
cfloat,1.1.1.1,NONE climits,1.1.1.1,NONE clocale,1.1.1.1,NONE
cmath,1.1.1.1,NONE complex,1.1.1.1,NONE csetjmp,1.1.1.1,NONE
csignal,1.1.1.1,NONE cstdarg,1.1.1.1,NONE cstddef,1.1.1.1,NONE
cstdio,1.1.1.1,NONE cstdlib,1.1.1.1,NONE cstring,1.1.1.1,NONE
ctime,1.1.1.1,NONE ctype.h,1.1.1.1,NONE cwchar,1.1.1.1,NONE
cwctype,1.1.1.1,NONE deque,1.1.1.1,NONE exception,1.1.1.1,NONE
exception.h,1.1.1.1,NONE export,1.1.1.1,NONE
export.sun,1.1.1.1,NONE fstream,1.1.1.1,NONE fstream.h,1.1.1.1,NONE
functional,1.1.1.1,NONE hash_map,1.1.1.1,NONE hash_set,1.1.1.1,NONE
iomanip,1.1.1.1,NONE iomanip.h,1.1.1.1,NONE ios,1.1.1.1,NONE
ios.h,1.1.1.1,NONE iosfwd,1.1.1.1,NONE iostream,1.1.1.1,NONE
iostream.h,1.1.1.1,NONE istream,1.1.1.1,NONE istream.h,1.1.1.1,NONE
iterator,1.1.1.1,NONE limits,1.1.1.1,NONE list,1.1.1.1,NONE
locale,1.1.1.1,NONE locale.h,1.1.1.1,NONE map,1.1.1.1,NONE
math.h,1.1.1.1,NONE mem.h,1.1.1.1,NONE memory,1.1.1.1,NONE
mmemory.h,1.1.1.1,NONE new,1.1.1.1,NONE new.h,1.1.1.1,NONE
numeric,1.1.1.1,NONE ostream,1.1.1.1,NONE ostream.h,1.1.1.1,NONE
pthread.h,1.1.1.1,NONE pthread_alloc,1.1.1.1,NONE
queue,1.1.1.1,NONE rlocks.h,1.1.1.1,NONE rope,1.1.1.1,NONE
set,1.1.1.1,NONE setjmp.h,1.1.1.1,NONE signal.h,1.1.1.1,NONE
slist,1.1.1.1,NONE sstream,1.1.1.1,NONE stack,1.1.1.1,NONE
stdarg.h,1.1.1.1,NONE stddef.h,1.1.1.1,NONE stdexcept,1.1.1.1,NONE
stdio.h,1.1.1.1,NONE stdio_streambuf,1.1.1.1,NONE
stdiostream.h,1.1.1.1,NONE stdlib.h,1.1.1.1,NONE
stl_user_config.h,1.1.1.1,NONE streambuf,1.1.1.1,NONE
streambuf.h,1.1.1.1,NONE string,1.1.1.1,NONE string.h,1.1.1.1,NONE
strstream,1.1.1.1,NONE strstream.h,1.1.1.1,NONE time.h,1.1.1.1,NONE
typeinfo,1.1.1.1,NONE typeinfo.h,1.1.1.1,NONE utility,1.1.1.1,NONE
valarray,1.1.1.1,NONE vector,1.1.1.1,NONE wchar.h,1.1.1.1,NONE
wctype.h,1.1.1.1,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the GME-commit
mailing list