<gh_stars>10-100
from .cpp_type import base_cpp_type


class String(base_cpp_type):
    def __init__(self, cpp_type, c_type, format_unit, to_python_function, from_python_function):
        super().__init__(cpp_type, c_type, format_unit)
        self.to_python_function = to_python_function
        self.from_python_function = from_python_function


types = {
    'std::string': String('std::string', 'char*', 's', 'PyUnicode_FromString', 'PyUnicode_AsUTF8'),
}
