Changeset 68917 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Sep 28, 2017 4:09:25 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 118180
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ovfreader.h
r65066 r68917 23 23 #include "iprt/cpp/xml.h" 24 24 #include <map> 25 #include <vector> 25 26 26 27 namespace ovf … … 492 493 struct VirtualSystem; 493 494 494 typedef std::map<uint32_t, VirtualHardwareItem> HardwareItemsMap; 495 496 /** 497 * VirtualHardwareItem pointer vector with safe cleanup. 498 * 499 * We need to use object pointers because we also want EthernetPortItem and 500 * StorageItems to go into the container. 501 */ 502 class HardwareItemVector : public std::vector<VirtualHardwareItem *> 503 { 504 public: 505 HardwareItemVector() : std::vector<VirtualHardwareItem *>() { } 506 ~HardwareItemVector() 507 { 508 for (iterator it = begin(); it != end(); ++it) 509 delete(*it); 510 clear(); 511 } 512 513 /* There is no copying of this vector. We'd need something like shared_ptr for that. */ 514 private: 515 HardwareItemVector(const VirtualSystem &); 516 517 }; 495 518 496 519 struct HardDiskController … … 564 587 // VMware Workstation 6.5 is "vmx-07" 565 588 566 HardwareItem sMap mapHardwareItems; // map of virtual hardware items, sorted by unique instance ID589 HardwareItemVector vecHardwareItems; //< vector containing all virtual hardware items in parsing order. 567 590 568 591 uint64_t ullMemorySize; // always in bytes, copied from llHardwareItems; default = 0 (unspecified)
Note:
See TracChangeset
for help on using the changeset viewer.