historical/toontown-classic.git/panda/include/parameterRemapConstToNonConst.h
2024-01-16 11:20:27 -06:00

34 lines
1,002 B
C++

/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file parameterRemapConstToNonConst.h
* @author drose
* @date 2000-08-04
*/
#ifndef PARAMETERREMAPCONSTTONONCONST_H
#define PARAMETERREMAPCONSTTONONCONST_H
#include "dtoolbase.h"
#include "parameterRemap.h"
/**
* A ParameterRemap class that handles remapping a simple const parameter
* (like const int) to an ordinary parameter (like int). It doesn't apply to
* const references or const pointers, however.
*/
class ParameterRemapConstToNonConst : public ParameterRemap {
public:
ParameterRemapConstToNonConst(CPPType *orig_type);
virtual void pass_parameter(std::ostream &out, const std::string &variable_name);
virtual std::string get_return_expr(const std::string &expression);
};
#endif