[Kstars-devel] branches/kstars/summer/kstars/kstars/comast

Prakash Mohan prak902000 at gmail.com
Wed Jul 29 19:22:28 CEST 2009


SVN commit 1004239 by prakash:

Writing the observation classes into the log file.

CCMAIL: kstars-devel at kde.org


 M  +6 -0      log.cpp  
 M  +1 -0      log.h  


--- branches/kstars/summer/kstars/kstars/comast/log.cpp #1004238:1004239
@@ -50,6 +50,7 @@
     writeLenses();
     writeFilters();
     writeImagers();
+    writeObservations();
     writeEnd();
     return output;
 }
@@ -121,6 +122,11 @@
     writer->writeEndElement();
 }
 
+void Comast::Log::writeObservations() {
+    foreach( Comast::Observation *o, m_observationList )
+        writeObservation( o );
+}
+
 void Comast::Log::writeTarget( SkyObject *o ) {
     writer->writeStartElement( "target" );
     writer->writeAttribute("id", o->name() );
--- branches/kstars/summer/kstars/kstars/comast/log.h #1004238:1004239
@@ -52,6 +52,7 @@
         void writeLenses();
         void writeFilters();
         void writeImagers();
+        void writeObservations();
         inline QList<SkyObject *> *targetList() { return &m_targetList; }
         inline QList<Comast::Scope *> *scopeList() { return &m_scopeList; }
         inline QList<Comast::Site *> *siteList() { return &m_siteList; }


More information about the Kstars-devel mailing list