parameterRemapToString.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. // Filename: parameterRemapToString.h
  2. // Created by: drose (09Aug00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. #ifndef PARAMETERREMAPTOSTRING_H
  6. #define PARAMETERREMAPTOSTRING_H
  7. #include <dtoolbase.h>
  8. #include "parameterRemap.h"
  9. ////////////////////////////////////////////////////////////////////
  10. // Class : ParameterRemapToString
  11. // Description : A base class for several different remapping types
  12. // that convert to an atomic string class.
  13. //
  14. // The atomic string class is represented in the C
  15. // interface as a (const char *). Other interfaces may
  16. // be able to represent it differently, subverting the
  17. // code defined here.
  18. ////////////////////////////////////////////////////////////////////
  19. class ParameterRemapToString : public ParameterRemap {
  20. public:
  21. ParameterRemapToString(CPPType *orig_type);
  22. virtual void pass_parameter(ostream &out, const string &variable_name);
  23. virtual string get_return_expr(const string &expression);
  24. virtual bool new_type_is_atomic_string();
  25. };
  26. #endif