Revision: 40875
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40875&view=rev
Author:   davidloman
Date:     2010-09-29 20:27:33 +0000 (Wed, 29 Sep 2010)

Log Message:
-----------
Implement handling writes to repo.

Modified Paths:
--------------
    rt^3/trunk/include/DataManager.h
    rt^3/trunk/src/GS/DataManager.cxx

Modified: rt^3/trunk/include/DataManager.h
===================================================================
--- rt^3/trunk/include/DataManager.h    2010-09-29 20:25:44 UTC (rev 40874)
+++ rt^3/trunk/include/DataManager.h    2010-09-29 20:27:33 UTC (rev 40875)
@@ -30,6 +30,7 @@
 #include "INetMsgHandler.h"
 #include "IDataSource.h"
 #include "GeometryReqMsg.h"
+#include "GeometryChunkMsg.h"
 #include "Logger.h"
 
 #include <QtCore/QString>
@@ -58,7 +59,7 @@
        QList<IDataSource*> datasources;
 
        void handleGeometryReqMsg(GeometryReqMsg* msg);
-
+       void handleGeometryChunkMsg(GeometryChunkMsg* msg);
 };
 
 #endif /* __DATAMANAGER_H__ */

Modified: rt^3/trunk/src/GS/DataManager.cxx
===================================================================
--- rt^3/trunk/src/GS/DataManager.cxx   2010-09-29 20:25:44 UTC (rev 40874)
+++ rt^3/trunk/src/GS/DataManager.cxx   2010-09-29 20:27:33 UTC (rev 40875)
@@ -66,12 +66,29 @@
        case GEOMETRYMANIFEST:
                return true;
        case GEOMETRYCHUNK:
-               return true;
+               this->handleGeometryChunkMsg((GeometryChunkMsg*)msg);
+       return true;
        }
        return false;
 }
 
 void
+DataManager::handleGeometryChunkMsg(GeometryChunkMsg* msg)
+{
+       Portal* origin = msg->getOrigin();
+
+       //validate incoming data
+       if (origin == 0) {
+               //TODO Figure out how to how to handle NULL Portal
+               log->logERROR("DataManager", "handleGeometryChunkMsg(): NULL 
Portal!");
+               return;
+       }
+
+
+
+}
+
+void
 DataManager::handleGeometryReqMsg(GeometryReqMsg* msg)
 {
        quint8 reqType = msg->getRequestType();


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to