Show gs_param_root.h syntax highlighted
/*
* gs_param_root.h
* gstlm_projects
*
* Created by Klingauf on 07.01.07.
* Copyright 2007 __MyCompanyName__. All rights reserved.
*
*/
#ifndef _GS_PARAM_ROOT_H_
#define _GS_PARAM_ROOT_H_
namespace tlm {
/**
* Base class for all gs_param template specialisations.
*/
class gs_param_root {
public:
gs_param_root() {}
gs_param_root(const char *n) : name(n) {}
virtual ~gs_param_root() {} // force to be polymorphic
/**
* sets the value of this parameter.
* @param str the new value represented as a string.
*/
virtual void set(const std::string str) =0;
/**
* gets the value of this parameter.
* @return the value of this parameter represented as a string.
*/
virtual const std::string get() =0;
/**
* Get the name of this parameter.
* @return Name of the parameter.
*/
const std::string getName() {
return name;
}
std::string name;
};
} // namespace tlm
#endif /* _GS_PARAM_ROOT_H_ */
See more files for this project here