root/trunk/libffado/src/genericavc/avc_vendormodel.cpp

Revision 557, 1.6 kB (checked in by wagi, 13 years ago)

moved&renamed configparser from bebob to genericavc

Line 
1 /*
2  * Copyright (C) 2007 by Daniel Wagner
3  *
4  * This file is part of FFADO
5  * FFADO = Free Firewire (pro-)audio drivers for linux
6  *
7  * FFADO is based upon FreeBoB.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License version 2.1, as published by the Free Software Foundation;
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21  * MA 02110-1301 USA
22  */
23
24 #include "genericavc/avc_vendormodel.h"
25
26 #include <fstream>
27 #include <istream>
28 #include <iostream>
29
30 GenericAVC::VendorModel::VendorModel( const char* filename )
31 {
32     using namespace std;
33
34     cout << "XXX GenericAVC::VendorModel::VendorModel" << endl;
35
36     ifstream in ( filename );
37
38     if ( !in ) {
39         perror( filename );
40         return;
41     }
42
43     string line;
44     while ( !getline( in,  line ).eof() ) {
45
46
47     }
48 }
49
50 GenericAVC::VendorModel::~VendorModel()
51 {
52     for ( VendorModelEntryVector::iterator it = m_vendorModelEntries.begin();
53           it != m_vendorModelEntries.end();
54           ++it )
55     {
56         delete *it;
57     }
58 }
59
60 const GenericAVC::VendorModelEntryVector&
61 GenericAVC::VendorModel::getVendorModelEntries() const
62 {
63     return m_vendorModelEntries;
64 }
Note: See TracBrowser for help on using the browser.