TKCell* TKContainer::getOutputInterfaceCell(std::string theFQNName)
{
TKCellMap::iterator ito = mOutInterfaceCells.find(theFQNName);
- if (ito == mInpInterfaceCells.end())
+ if (ito == mOutInterfaceCells.end())
{
return NULL;
}
virtual TKAxonTerminal* axonTerminalFactory(TKAxon *theOwner) = 0;
virtual TKCellCode* cellCodeFactory(std::string name, std::string cellapi, std::string code) = 0;
- virtual void beganParsePage(const char *docRoot, const char *path) {}
- virtual void endedParsePage(const char *docRoot, const char *path) {}
+ virtual void beganParsePage(const char *docRoot, const char *path) { (void)docRoot; (void)path; }
+ virtual void endedParsePage(const char *docRoot, const char *path) { (void)docRoot; (void)path; }
protected:
TKContainer();
#ifndef __INCLUDE_TKRECEPTOR__
#define __INCLUDE_TKRECEPTOR__
-#include "math.h"
+#include <limits>
class TKCell;
class TKAxonTerminal;
class TKReceptor
{
public:
- TKReceptor(TKCell *theOwner) : mOwner(theOwner), mTerminal(0), mValue(NAN) {}
+ TKReceptor(TKCell *theOwner) : mOwner(theOwner), mTerminal(0), mValue(std::numeric_limits<float>::quiet_NaN()) {}
virtual ~TKReceptor() {}
void setTarget(TKAxonTerminal *theTerminal);
#ifdef DEBUG
QString msg = QString().vsprintf(fmt,ap);
qDebug() << "DEBUG:" << msg << endl;
+#else
+ (void)fmt; (void)ap;
#endif
}
bool QtXMLHandler::startElement(const QString & namespaceURI, const QString & localName, const QString & qName, const QXmlAttributes & atts )
{
+ (void)namespaceURI; (void)localName;
+
if (mRootElement == NULL)
{
mRootElement = new DNXMLElement(qName.toStdString());
bool QtXMLHandler::endElement (const QString & namespaceURI, const QString & localName, const QString & qName )
{
+ (void)namespaceURI; (void)localName; (void)qName;
+
mCurrentElement = mCurrentElement->outer;
return true;
}
if (tickIntervalSignal <= 0)
{
- tickIntervalSignal = tickIntervalFull / 5.0;
+ tickIntervalSignal = tickIntervalFull / 5.0f;
}
if (tickIntervalInput <= 0)
{
bool DNEngine::doClientSetRequest(const char* path, const char* value)
{
- return doClientSetRequest(path, atof(value));
+ return doClientSetRequest(path, (float)atof(value));
}
bool DNEngine::doClientSetRequest(const char* path, float value)
//static
void DNEngine::callbackSerialPortClosed(DNEngine *engine)
{
+ (void)engine;
+
//TODO
}
#ifdef DEBUG
QString msg = QString().vsprintf(fmt,ap);
qDebug() << "DEBUG:" << msg << endl;
+#else
+ (void)fmt; (void)ap;
#endif
}
DNServerHTTPImpl *DNServerHTTPImpl::create(DNServerHTTP *owner, DNClientRequestHandler handler)
{
+ (void)owner; (void)handler;
+
//TODO
return NULL;
}
#ifndef VERSIONINFO_H
#define VERSIONINFO_H
-#define CONTAINER_VERSION "alpha 1.2"
-#define ENGINE_VERSION "alpha 1.2"
+#define CONTAINER_VERSION "alpha 2.0"
+#define ENGINE_VERSION "alpha 2.0"
#endif // VERSIONINFO_H