open_toontown_panda3d/dtool/src/interrogate/parameterRemapToString.h

47 lines
1.6 KiB
C++

// Filename: parameterRemapToString.h
// Created by: drose (09Aug00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Software license. You should have received a copy of this license
// along with this source code; you will also find a current copy of
// the license at http://www.panda3d.org/license.txt .
//
// To contact the maintainers of this program write to
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////
#ifndef PARAMETERREMAPTOSTRING_H
#define PARAMETERREMAPTOSTRING_H
#include <dtoolbase.h>
#include "parameterRemap.h"
////////////////////////////////////////////////////////////////////
// Class : ParameterRemapToString
// Description : A base class for several different remapping types
// that convert to an atomic string class.
//
// The atomic string class is represented in the C
// interface as a (const char *). Other interfaces may
// be able to represent it differently, subverting the
// code defined here.
////////////////////////////////////////////////////////////////////
class ParameterRemapToString : public ParameterRemap {
public:
ParameterRemapToString(CPPType *orig_type);
virtual void pass_parameter(ostream &out, const string &variable_name);
virtual string get_return_expr(const string &expression);
virtual bool new_type_is_atomic_string();
};
#endif