parameterRemapConstToNonConst.h 994 B

12345678910111213141516171819202122232425262728
  1. // Filename: parameterRemapConstToNonConst.h
  2. // Created by: drose (04Aug00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. #ifndef PARAMETERREMAPCONSTTONONCONST_H
  6. #define PARAMETERREMAPCONSTTONONCONST_H
  7. #include <dtoolbase.h>
  8. #include "parameterRemap.h"
  9. ////////////////////////////////////////////////////////////////////
  10. // Class : ParameterRemapConstToNonConst
  11. // Description : A ParameterRemap class that handles remapping a
  12. // simple const parameter (like const int) to an
  13. // ordinary parameter (line int). It doesn't apply to
  14. // const references or const pointers, however.
  15. ////////////////////////////////////////////////////////////////////
  16. class ParameterRemapConstToNonConst : public ParameterRemap {
  17. public:
  18. ParameterRemapConstToNonConst(CPPType *orig_type);
  19. virtual void pass_parameter(ostream &out, const string &variable_name);
  20. virtual string get_return_expr(const string &expression);
  21. };
  22. #endif