Code Search for Developers
 
 
  

gs_param_root.h from GreenSocs at Krugle


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

GreenSocs

To develop SystemC infrustructure, basic IP, patches and add on library code for eventual standerdization.\r\nThe GreenSocs project is made up of a number of contributions (sub projects). Please visit www.greensocs.com for more information.

Project homepage: http://sourceforge.net/projects/greensocs
Programming language(s): C,C++,Java,Perl,XML
License: other

  class_wrapper.h
  description.h
  dust.h
  dust_model.h
  dust_model_and_introspection.h
  dust_model_and_transactions.h
  gs_config.h
  gs_config_parser.h
  gs_configurable.h
  gs_datatypes.h
  gs_dust_port.h
  gs_param.h
  gs_param_root.h
  gs_trace.h
  memoryutils.h
  payload_event_queue-new_buggy.h
  payload_event_queue.h
  phase_trace.h
  ref_count.h
  router_fabric.h