예제 #1
0
std::string TypeMirrorImpl::description() const
{
    TypeInfo info = this->class_type.get_info();
    string system = info.system;
    string name = this->name;

    if (system == "namespace")
    {
        if (name == "")
            return "Global namespace";
        else
            return "C++ namespace " + name;
    }
    else if (system == "C++")
        return "C++ class " + name;
    else
        return name + "( of type " + info.description() + ")";
}
예제 #2
0
void TypeSystemInstance::add_conv(TypeInfo from_info, TypeInfo to_info)
{
    this->conv_graph.add_conv(
        get_index(from_info), get_index(to_info),
        new NoChangeConv("from " + from_info.description() + " to " + to_info.description()));
}