Mercurial > hg > aimc
annotate src/Support/FileList.h @ 46:c8024714e13e
- Added support for a very basic AIM-C file format
author | tomwalters@google.com |
---|---|
date | Thu, 27 May 2010 07:25:03 +0000 |
parents | c5f5e9569863 |
children | e914b02b31b0 |
rev | line source |
---|---|
tomwalters@23 | 1 // Copyright 2010, Thomas Walters |
tomwalters@23 | 2 // |
tomwalters@23 | 3 // AIM-C: A C++ implementation of the Auditory Image Model |
tomwalters@23 | 4 // http://www.acousticscale.org/AIMC |
tomwalters@23 | 5 // |
tomwalters@45 | 6 // Licensed under the Apache License, Version 2.0 (the "License"); |
tomwalters@45 | 7 // you may not use this file except in compliance with the License. |
tomwalters@45 | 8 // You may obtain a copy of the License at |
tomwalters@23 | 9 // |
tomwalters@45 | 10 // http://www.apache.org/licenses/LICENSE-2.0 |
tomwalters@23 | 11 // |
tomwalters@45 | 12 // Unless required by applicable law or agreed to in writing, software |
tomwalters@45 | 13 // distributed under the License is distributed on an "AS IS" BASIS, |
tomwalters@45 | 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
tomwalters@45 | 15 // See the License for the specific language governing permissions and |
tomwalters@45 | 16 // limitations under the License. |
tomwalters@23 | 17 |
tomwalters@23 | 18 /*! |
tomwalters@23 | 19 * \file |
tomwalters@23 | 20 * \brief Convert a file containing a list of pairs of tab-separated |
tomwalters@23 | 21 * items, one per line, and convert it to a vector<pair<string, string> > |
tomwalters@23 | 22 * |
tomwalters@23 | 23 * \author Thomas Walters <tom@acousticscale.org> |
tomwalters@23 | 24 * \date created 2010/02/23 |
tomwalters@23 | 25 * \version \$Id$ |
tomwalters@23 | 26 */ |
tomwalters@23 | 27 |
tomwalters@23 | 28 #include <string> |
tomwalters@23 | 29 #include <utility> |
tomwalters@23 | 30 #include <vector> |
tomwalters@23 | 31 |
tomwalters@23 | 32 #include "Support/Common.h" |
tomwalters@23 | 33 |
tomwalters@23 | 34 namespace aimc { |
tomwalters@23 | 35 using std::vector; |
tomwalters@23 | 36 using std::pair; |
tomwalters@23 | 37 using std::string; |
tomwalters@23 | 38 class FileList { |
tomwalters@23 | 39 public: |
tomwalters@23 | 40 static vector<pair<string, string> > Load(string filename); |
tomwalters@23 | 41 }; |
tomwalters@23 | 42 } // namespace aimc |