Commit 87824f71 authored by schultezub's avatar schultezub
Browse files

git-svn-id: https://camplinux.in.tum.de/svn/campvis/trunk@173 bb408c1c-ae56-11e1-83d9-df6b3e0c105e
parent dce3bfd5
#ifndef ABSTRACTPROPERTY_H__
#define ABSTRACTPROPERTY_H__
#include "tgt/logmanager.h"
#include <vector>
namespace TUMVis {
/**
* Abstract base class for TUMVis Pipelines.
*
*/
class AbstractProperty {
public:
/**
* Creates a AbstractProperty.
*/
AbstractProperty();
/**
* Virtual Destructor
**/
virtual ~AbstractProperty();
protected:
static const std::string loggerCat_;
};
}
#endif // ABSTRACTPROPERTY_H__
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
namespace TUMVis { namespace TUMVis {
const std::string AbstractProperty::loggerCat_ = "TUMVis.core.datastructures.AbstractProperty"; const std::string GenericProperty::loggerCat_ = "TUMVis.core.datastructures.GenericProperty";
} }
#ifndef GENERICPROPERTY_H__
#define GENERICPROPERTY_H__
#include "tgt/logmanager.h"
#include "core/tools/observer.h"
#include <string>
#include <vector>
namespace TUMVis {
/**
* Abstract base class for TUMVis Property.
*
* \todo Add PropertyWidgets
*/
template<typename T>
class GenericProperty : public Observable {
public:
/**
* Creates an GenericProperty.
*/
GenericProperty();
/**
* Virtual Destructor
**/
virtual ~GenericProperty();
const std::string& getName() {
return _name;
}
const std::string& getTitle() {
return _title;
}
const T getValue() const {
return _value;
}
void setValue(const T& value) {
_value = value;
notifyObservers();
}
protected:
std::string _name;
std::string _title;
T _value;
static const std::string loggerCat_;
};
}
#endif // GENERICPROPERTY_H__
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment