Exemplo n.º 1
0
const ProjectType* ProjectType::findType (const String& typeCode)
{
    const Array<ProjectType*>& types = getAllTypes();

    for (int i = types.size(); --i >= 0;)
        if (types.getUnchecked(i)->getType() == typeCode)
            return types.getUnchecked(i);

    jassertfalse;
    return nullptr;
}
Exemplo n.º 2
0
//==============================================================================
ProjectType::ProjectType (const String& t, const String& d)
    : type (t), desc (d)
{
    getAllTypes().add (this);
}
Exemplo n.º 3
0
ProjectType::~ProjectType()
{
    getAllTypes().removeFirstMatchingValue (this);
}
Exemplo n.º 4
0
//==============================================================================
ProjectType::ProjectType (const String& type_, const String& desc_)
    : type (type_), desc (desc_)
{
    getAllTypes().add (this);
}