[opengtl-commits] [533] allow to set a parameter of a Kernel |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 533
Author: cyrille
Date: 2008-12-09 19:59:07 +0100 (Tue, 09 Dec 2008)
Log Message:
-----------
allow to set a parameter of a Kernel
Modified Paths:
--------------
trunk/OpenGTL/OpenShiva/OpenShiva/Kernel.h
trunk/OpenGTL/OpenShiva/OpenShiva/Library.cpp
trunk/OpenGTL/OpenShiva/OpenShiva/Library.h
Modified: trunk/OpenGTL/OpenShiva/OpenShiva/Kernel.h
===================================================================
--- trunk/OpenGTL/OpenShiva/OpenShiva/Kernel.h 2008-12-09 18:58:15 UTC (rev 532)
+++ trunk/OpenGTL/OpenShiva/OpenShiva/Kernel.h 2008-12-09 18:59:07 UTC (rev 533)
@@ -70,8 +70,6 @@
bool hasChangedFunction() const;
GTLCore::Region generated();
bool hasGeneratedFunction() const;
-
-
private:
struct Private;
Private * const d;
Modified: trunk/OpenGTL/OpenShiva/OpenShiva/Library.cpp
===================================================================
--- trunk/OpenGTL/OpenShiva/OpenShiva/Library.cpp 2008-12-09 18:58:15 UTC (rev 532)
+++ trunk/OpenGTL/OpenShiva/OpenShiva/Library.cpp 2008-12-09 18:59:07 UTC (rev 533)
@@ -232,3 +232,8 @@
{
return d->metadata;
}
+
+void Library::setParameter( const GTLCore::String& _name, GTLCore::Value _value )
+{
+ d->parameters[ _name ] = _value;
+}
Modified: trunk/OpenGTL/OpenShiva/OpenShiva/Library.h
===================================================================
--- trunk/OpenGTL/OpenShiva/OpenShiva/Library.h 2008-12-09 18:58:15 UTC (rev 532)
+++ trunk/OpenGTL/OpenShiva/OpenShiva/Library.h 2008-12-09 18:59:07 UTC (rev 533)
@@ -26,6 +26,7 @@
class ErrorMessage;
class ModuleData;
class Function;
+ class Value;
}
namespace OpenShiva {
@@ -89,6 +90,10 @@
* @return the metadata for this kernel.
*/
const KernelMetadata* metadata() const;
+ /**
+ * Set a given parameter to a given value
+ */
+ void setParameter( const GTLCore::String& _name, GTLCore::Value );
private:
struct Private;
Private* const d;