Changeset 599 for trunk/libffado/src/genericavc/avc_vendormodel.h
- Timestamp:
- 08/29/07 14:17:58 (16 years ago)
- Files:
-
- trunk/libffado/src/genericavc/avc_vendormodel.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/genericavc/avc_vendormodel.h
r557 r599 25 25 #define GENERICAVC_VENDORMODEL_H 26 26 27 #include <string> 27 28 #include <vector> 28 29 … … 31 32 // struct to define the supported devices 32 33 struct VendorModelEntry { 34 VendorModelEntry(); 35 VendorModelEntry(const VendorModelEntry& rhs); 36 VendorModelEntry& operator = (const VendorModelEntry& rhs); 37 virtual ~VendorModelEntry(); 38 33 39 unsigned int vendor_id; 34 40 unsigned int model_id; 35 char *vendor_name;36 char *model_name;41 std::string vendor_name; 42 std::string model_name; 37 43 }; 38 44 39 typedef std::vector<VendorModelEntry *> VendorModelEntryVector;45 typedef std::vector<VendorModelEntry> VendorModelEntryVector; 40 46 41 47 class VendorModel { 42 48 public: 43 49 VendorModel( const char* filename ); 44 ~VendorModel(); 50 virtual ~VendorModel(); 51 52 virtual bool parse(); 53 virtual bool printTable() const; 54 virtual bool handleAdditionalEntries(VendorModelEntry& vme, 55 std::vector<std::string>& v, 56 std::vector<std::string>::const_iterator& b, 57 std::vector<std::string>::const_iterator& e ); 58 VendorModelEntry* find( unsigned int vendor_id, unsigned model_id ); 45 59 46 60 const VendorModelEntryVector& getVendorModelEntries() const; 47 61 private: 62 std::string m_filename; 48 63 VendorModelEntryVector m_vendorModelEntries; 49 64 };