[GME-commit]
GMESRC/SDK/BON BONImpl.cpp,1.35,1.36 BONImpl.h,1.21,1.22
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Thu Nov 2 21:39:20 CST 2006
Update of /project/gme-repository/GMESRC/SDK/BON
In directory escher:/tmp/cvs-serv4645
Modified Files:
BONImpl.cpp BONImpl.h
Log Message:
ProjectPath, ParadigmPath, getGMEI methods on ProjectImpl.
CVS User: Zoltan Molnar, ISIS (zolmol)
Index: BONImpl.h
===================================================================
RCS file: /project/gme-repository/GMESRC/SDK/BON/BONImpl.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** BONImpl.h 25 Sep 2006 18:09:12 -0000 1.21
--- BONImpl.h 2 Nov 2006 21:39:18 -0000 1.22
***************
*** 162,165 ****
--- 162,167 ----
std::string getGUID() const;
std::string getVersion() const;
+ std::string getProjectPath() const;
+ std::string getParadigmPath() const;
void setName( const std::string& strName );
void setAuthor( const std::string& strAuthor );
***************
*** 172,175 ****
--- 174,179 ----
bool isGMEAvailable() const;
+ GMEAppPtr getGMEI();
+ void consoleClear();
void consoleMsg(const std::string& msg, msgtype_enum type);
std::string getConsoleContents();
Index: BONImpl.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/SDK/BON/BONImpl.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** BONImpl.cpp 25 Sep 2006 18:09:12 -0000 1.35
--- BONImpl.cpp 2 Nov 2006 21:39:18 -0000 1.36
***************
*** 558,561 ****
--- 558,575 ----
}
+ std::string ProjectImpl::getProjectPath() const
+ {
+ CComBSTR bstrName;
+ COMTHROW( m_spProject->get_ProjectConnStr( &bstrName ) );
+ return Util::Copy( bstrName ).substr(4);
+ }
+
+ std::string ProjectImpl::getParadigmPath() const
+ {
+ CComBSTR bstrName;
+ COMTHROW( m_spProject->get_ParadigmConnStr( &bstrName ) );
+ return Util::Copy( bstrName ).substr(4);
+ }
+
void ProjectImpl::setName( const std::string& strName )
{
***************
*** 631,634 ****
--- 645,653 ----
}
+ void ProjectImpl::consoleClear()
+ {
+ putConsoleContents("");
+ }
+
void ProjectImpl::consoleMsg(const std::string& msg, msgtype_enum type)
{
***************
*** 895,898 ****
--- 914,928 ----
}
+ GMEAppPtr ProjectImpl::getGMEI()
+ {
+ GMEAppPtr p;
+ try {
+ p = getGME();
+ } catch( Util::Exception &) {
+ // will return 0 if GUI not running
+ }
+ return p;
+ }
+
GMEAppPtr ProjectImpl::getGME()
{
More information about the GME-commit
mailing list