VirtualBox

Changeset 16210 in vbox


Ignore:
Timestamp:
Jan 23, 2009 7:22:46 PM (16 years ago)
Author:
vboxsync
Message:

OVF: parse VirtualSystem/@id as machine name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r16209 r16210  
    141141struct VirtualSystem
    142142{
     143    string              strName;                // copy of VirtualSystem/@id
     144
    143145    CIMOSType_T         cimos;
    144146    string              strVirtualSystemType;
     
    417419{
    418420    VirtualSystem d;
     421
     422    const xml::Node *pIdAttr = pelmVirtualSystem->findAttribute("type");
     423    if (pIdAttr)
     424        d.strName = pIdAttr->getValue();
    419425
    420426    xml::NodesLoop loop(*pelmVirtualSystem);      // all child elements
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette