Index: /trunk/BNC/bnc.pro
===================================================================
--- /trunk/BNC/bnc.pro	(revision 3045)
+++ /trunk/BNC/bnc.pro	(revision 3046)
@@ -104,7 +104,8 @@
   HEADERS += combination/bnccomb.h   combination/cmbcaster.h \
              combination/bnssp3.h    combination/bnsoutf.h   \
-             combination/bnsutils.h
+             combination/bnsutils.h                       
   SOURCES += combination/bnccomb.cpp combination/cmbcaster.cpp \
-             combination/bnssp3.cpp  combination/bnsoutf.cpp  
+             combination/bnssp3.cpp  combination/bnsoutf.cpp   \ 
+             combination/bnsutils.cpp
 }
 
Index: /trunk/BNC/combination/bnccomb.cpp
===================================================================
--- /trunk/BNC/combination/bnccomb.cpp	(revision 3045)
+++ /trunk/BNC/combination/bnccomb.cpp	(revision 3046)
@@ -25,4 +25,5 @@
 #include "bncutils.h"
 #include "bncpppclient.h"
+#include "bnssp3.h"
 
 using namespace std;
@@ -170,4 +171,18 @@
   }
   _out = 0;
+
+  // SP3 writer
+  // ----------
+  if ( settings.value("sp3Path").toString().isEmpty() ) { 
+    _sp3 = 0;
+  }
+  else {
+    QString prep  = "BNS";
+    QString ext   = ".sp3";
+    QString path  = settings.value("sp3Path").toString();
+    QString intr  = settings.value("sp3Intr").toString();
+    int     sampl = settings.value("sp3Sampl").toInt();
+    _sp3 = new bnsSP3(prep, ext, path, intr, sampl);
+  }
 }
 
@@ -182,4 +197,5 @@
   delete _caster;
   delete _out;
+  delete _sp3;
 }
 
@@ -377,4 +393,8 @@
     }
   }
+
+  //if (_sp3) {
+  //  _sp3->write(GPSweek, GPSweeks, prn, xx, _append);
+  //}
 }
 
Index: /trunk/BNC/combination/bnccomb.h
===================================================================
--- /trunk/BNC/combination/bnccomb.h	(revision 3045)
+++ /trunk/BNC/combination/bnccomb.h	(revision 3046)
@@ -8,4 +8,5 @@
 
 class cmbCaster;
+class bnsSP3;
 
 class cmbParam {
@@ -86,4 +87,5 @@
   QString               _outName;
   std::ofstream*        _out;
+  bnsSP3*               _sp3;
 };
 
