48 lines
1.5 KiB
C++
48 lines
1.5 KiB
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 parameterRemapBasicStringToString.h
|
|
* @author drose
|
|
* @date 2000-08-09
|
|
*/
|
|
|
|
#ifndef PARAMETERREMAPBASICSTRINGTOSTRING_H
|
|
#define PARAMETERREMAPBASICSTRINGTOSTRING_H
|
|
|
|
#include "dtoolbase.h"
|
|
|
|
#include "parameterRemapToString.h"
|
|
|
|
/**
|
|
* Maps a concrete basic_string<char> to an atomic string.
|
|
*/
|
|
class ParameterRemapBasicStringToString : public ParameterRemapToString {
|
|
public:
|
|
ParameterRemapBasicStringToString(CPPType *orig_type);
|
|
|
|
virtual void pass_parameter(ostream &out, const string &variable_name);
|
|
virtual string prepare_return_expr(ostream &out, int indent_level,
|
|
const string &expression);
|
|
virtual string get_return_expr(const string &expression);
|
|
};
|
|
|
|
/**
|
|
* Maps a concrete basic_string<wchar_t> to an atomic string.
|
|
*/
|
|
class ParameterRemapBasicWStringToWString : public ParameterRemapToWString {
|
|
public:
|
|
ParameterRemapBasicWStringToWString(CPPType *orig_type);
|
|
|
|
virtual void pass_parameter(ostream &out, const string &variable_name);
|
|
virtual string prepare_return_expr(ostream &out, int indent_level,
|
|
const string &expression);
|
|
virtual string get_return_expr(const string &expression);
|
|
};
|
|
|
|
#endif
|