fixed compile errors in various plugins
authorKevron Rees <kevron.m.rees@intel.com>
Fri, 28 Mar 2014 18:27:41 +0000 (11:27 -0700)
committerKevron Rees <kevron.m.rees@intel.com>
Fri, 28 Mar 2014 21:42:57 +0000 (14:42 -0700)
build/plugins/cansimplugin/CMakeFiles/cansimplugin.dir/cansimplugin.cpp.o
build/plugins/cansimplugin/cansimplugin.so
plugins/common/ambplugin.h
plugins/database/databasesink.cpp
plugins/murphyplugin/murphysource.cpp
plugins/obd2plugin/obd2source.cpp

index 3fb73a2..96511bb 100644 (file)
Binary files a/build/plugins/cansimplugin/CMakeFiles/cansimplugin.dir/cansimplugin.cpp.o and b/build/plugins/cansimplugin/CMakeFiles/cansimplugin.dir/cansimplugin.cpp.o differ
index 2e19431..21eb263 100755 (executable)
Binary files a/build/plugins/cansimplugin/cansimplugin.so and b/build/plugins/cansimplugin/cansimplugin.so differ
index bb1728d..7afa9f9 100644 (file)
@@ -186,9 +186,7 @@ AmbPlugin<T>::AmbPlugin(AbstractRoutingEngine* re, const std::map<std::string, s
     AbstractSource(re, config),
     d(new T(re, config, *this))
 {
-    AbstractSource* source = dynamic_cast<AbstractSource*>(this);
-    if(source && re)
-        re->setSupported(supported(), source);
+
 }
 
 template<typename T>
index 1d7c5c1..6cc0405 100644 (file)
@@ -170,7 +170,7 @@ DatabaseSink::DatabaseSink(AbstractRoutingEngine *engine, map<std::string, std::
        mSupported.push_back(DatabaseLogging);
        mSupported.push_back(DatabasePlayback);
 
-       routingEngine->setSupported(supported(), this);
+       routingEngine->updateSupported(supported(), PropertyList(), this);
 
        if(config.find("startOnLoad")!= config.end())
        {
@@ -384,7 +384,7 @@ void DatabaseSink::setDatabaseFileName(string filename)
        delete shared;
        shared = NULL;
 
-       routingEngine->setSupported(mSupported, this);
+       routingEngine->updateSupported(mSupported, PropertyList(), this);
 }
 
 void DatabaseSink::propertyChanged(AbstractPropertyType *value)
@@ -397,7 +397,7 @@ void DatabaseSink::propertyChanged(AbstractPropertyType *value)
        if(!ListPlusPlus<VehicleProperty::Property>(&mSupported).contains(property))
        {
                mSupported.push_back(property);
-               routingEngine->setSupported(mSupported, this);
+               routingEngine->updateSupported(mSupported, PropertyList(), this);
        }
 
        DBObject obj;
index fca35c7..de3fb4a 100644 (file)
@@ -49,7 +49,7 @@ void MurphySource::processValue(string propertyName, AbstractPropertyType *prop)
     }
     else {
         murphyProperties[propertyName] = prop;
-        m_re->setSupported(supported(), this);
+               m_re->updateSupported(supported(), PropertyList(), this);
     }
 
     // cout << "updating property!" << endl;
@@ -378,7 +378,7 @@ void MurphySource::setConfiguration(map<string, string> config)
     }
 
     // TODO: read supported values from configuration?
-    m_re->setSupported(supported(), this);
+       m_re->updateSupported(supported(), PropertyList(), this);
 
     // set up the connection with Murphy
     if (!m_address.empty())
index 746d2d1..50d338d 100644 (file)
@@ -630,11 +630,8 @@ OBD2Source::OBD2Source(AbstractRoutingEngine *re, map<string, string> config)
 
        m_supportedProperties.push_back(Obd2Connected);
 
-       re->setSupported(supported(), this);
-       /*if (openPort(std::string("/dev/pts/7"),115200))
-       {
-         printf("Error opening OBD2 port\n");
-       }*/
+       re->updateSupported(supported(), PropertyList(), this);
+
        statusQueue = g_async_queue_new();
        commandQueue = g_async_queue_new();
        subscriptionAddQueue = g_async_queue_new();