[GME-commit] GMESRC/Paradigms/MetaGME/MetaInterpreter2004/Rep Dumper.cpp,1.22,1.23 Sheet.cpp,1.6,1.7 Sheet.h,1.4,1.5

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Tue Jul 20 06:48:37 CDT 2004


Update of /var/lib/gme/GMESRC/Paradigms/MetaGME/MetaInterpreter2004/Rep
In directory braindrain:/tmp/cvs-serv7969/Paradigms/MetaGME/MetaInterpreter2004/Rep

Modified Files:
	Dumper.cpp Sheet.cpp Sheet.h 
Log Message:
MetaInterpreter uses project properties for dumping
- Author(s)
- Comment
- GUID
- Version
- Creation and modification time

CVS User: volgy

Index: Dumper.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/Paradigms/MetaGME/MetaInterpreter2004/Rep/Dumper.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** Dumper.cpp	16 Jul 2004 22:39:07 -0000	1.22
--- Dumper.cpp	20 Jul 2004 10:48:35 -0000	1.23
***************
*** 807,812 ****
  	// root folder dump
  	std::string mmm= "<?xml version=\"1.0\"?>\n<!DOCTYPE paradigm SYSTEM \"edf.dtd\">"
! 	"\n\n<paradigm name =\"" + m_projName + "\">\n\n"
! 	+ "\t<comment> Generated by the MetaGME2004 interpreter </comment>\n\n";
  
  	DMP( mmm); mmm = "";
--- 807,819 ----
  	// root folder dump
  	std::string mmm= "<?xml version=\"1.0\"?>\n<!DOCTYPE paradigm SYSTEM \"edf.dtd\">"
! 	"\n\n<paradigm "
! 	"name=\"" + m_projName + "\" " +
! 	(m_projVersion.empty() ? "" : "version=\"" + m_projVersion + "\" ") +
! 	"guid=\"" + m_projGUID + "\" " +
! 	"cdate=\"" + m_projCreated + "\" " +
! 	"mdate=\"" + m_projModified + "\" " +
! 	">\n\n" +
! 	"\t<comment>" + m_projComment + "</comment>\n\n" +
! 	"\t<author>" + m_projAuthor + "</author>\n\n";
  
  	DMP( mmm); mmm = "";

Index: Sheet.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/Paradigms/MetaGME/MetaInterpreter2004/Rep/Sheet.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Sheet.cpp	16 Jul 2004 22:39:07 -0000	1.6
--- Sheet.cpp	20 Jul 2004 10:48:35 -0000	1.7
***************
*** 13,16 ****
--- 13,22 ----
  Sheet::Sheet()
  : m_projName(""),
+ 	m_projVersion(),
+ 	m_projGUID(),
+ 	m_projCreated(),
+ 	m_projModified(),
+ 	m_projAuthor(),
+ 	m_projComment(),
  	m_rootFolder(),
  	m_fcoRepList(),
***************
*** 139,145 ****
  
  
! void Sheet::setProjName( const std::string& name)
  {
! 	m_projName = name;
  }
  
--- 145,157 ----
  
  
! void Sheet::setProject( BON::Project& project)
  {
! 	m_projName = project->getName();
! 	m_projVersion = project->getVersion();
! 	m_projGUID = project->getGUID();
! 	m_projCreated = project->getCreationTime();
! 	m_projModified = project->getChangeTime();
! 	m_projAuthor = project->getAuthor();
! 	m_projComment = project->getComment();
  }
  

Index: Sheet.h
===================================================================
RCS file: /var/lib/gme/GMESRC/Paradigms/MetaGME/MetaInterpreter2004/Rep/Sheet.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Sheet.h	16 Jul 2004 22:39:07 -0000	1.4
--- Sheet.h	20 Jul 2004 10:48:35 -0000	1.5
***************
*** 36,40 ****
  	virtual bool build() = 0;
  	virtual bool finalize();
! 	void setProjName( const std::string& name);
  
  	FcoRep* createFcoRep( BON::FCO& ptr);
--- 36,40 ----
  	virtual bool build() = 0;
  	virtual bool finalize();
! 	void setProject( BON::Project& project );
  
  	FcoRep* createFcoRep( BON::FCO& ptr);
***************
*** 108,111 ****
--- 108,118 ----
  
  	std::string m_projName;
+ 	std::string m_projVersion;
+ 	std::string m_projGUID;
+ 	std::string m_projCreated;
+ 	std::string m_projModified;
+ 	std::string m_projAuthor;
+ 	std::string m_projComment;
+ 
  	RootFolder m_rootFolder;
  



More information about the GME-commit mailing list