Esempio n. 1
0
bool MultiResource::addResource(GenericResource& res)
{
    GenericResource* newres = (GenericResource*) res.clone();
    resources.push_back(newres);    
    return true;
}
Esempio n. 2
0
bool Computer::addPeripheral(GenericResource& res)
{
    GenericResource* newres = (GenericResource*) res.clone();
    peripheralResources.push_back(newres);
    return true;
}