Revision: 40767
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40767&view=rev
Author:   davidloman
Date:     2010-09-28 19:51:36 +0000 (Tue, 28 Sep 2010)

Log Message:
-----------
Stub in a hook for a method that will auto-register type/handler combos upon 
first access of NetMsgRouter

Modified Paths:
--------------
    rt^3/trunk/include/NetMsgRouter.h
    rt^3/trunk/src/libNet/NetMsgRouter.cxx

Modified: rt^3/trunk/include/NetMsgRouter.h
===================================================================
--- rt^3/trunk/include/NetMsgRouter.h   2010-09-28 19:48:33 UTC (rev 40766)
+++ rt^3/trunk/include/NetMsgRouter.h   2010-09-28 19:51:36 UTC (rev 40767)
@@ -47,6 +47,7 @@
        static NetMsgRouter* pInstance;
        NetMsgRouter();
 
+       static void registerInternalTypes();
        /*
         * Gets a list of INetMsgHandler pointers associated with
         * this msgType.  If no Mapping or list exists, one is made.

Modified: rt^3/trunk/src/libNet/NetMsgRouter.cxx
===================================================================
--- rt^3/trunk/src/libNet/NetMsgRouter.cxx      2010-09-28 19:48:33 UTC (rev 
40766)
+++ rt^3/trunk/src/libNet/NetMsgRouter.cxx      2010-09-28 19:51:36 UTC (rev 
40767)
@@ -32,6 +32,7 @@
 NetMsgRouter::getInstance() {
        if (NetMsgRouter::pInstance == NULL) {
                NetMsgRouter::pInstance = new NetMsgRouter();
+               NetMsgRouter::pInstance->registerInternalTypes();
        }
        return NetMsgRouter::pInstance;
 }
@@ -77,6 +78,13 @@
        return l;
 }
 
+
+void
+NetMsgRouter::registerInternalTypes()
+{
+       //TODO add in any type<->Handler associations that should be 
automatically mapped here.
+}
+
 // Local Variables:
 // tab-width: 8
 // mode: C++


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