Mercurial > hg > aimc
annotate trunk/src/Support/FileList.h @ 706:f8e90b5d85fd tip
Delete CARFAC code from this repository.
It has been moved to https://github.com/google/carfac
Please email me with your github username to get access.
I've also created a new mailing list to discuss CARFAC development:
https://groups.google.com/forum/#!forum/carfac-dev
author | ronw@google.com |
---|---|
date | Thu, 18 Jul 2013 20:56:51 +0000 |
parents | 0a8e7d0c70dc |
children |
rev | line source |
---|---|
tomwalters@296 | 1 // Copyright 2010, Thomas Walters |
tomwalters@296 | 2 // |
tomwalters@296 | 3 // AIM-C: A C++ implementation of the Auditory Image Model |
tomwalters@296 | 4 // http://www.acousticscale.org/AIMC |
tomwalters@296 | 5 // |
tomwalters@318 | 6 // Licensed under the Apache License, Version 2.0 (the "License"); |
tomwalters@318 | 7 // you may not use this file except in compliance with the License. |
tomwalters@318 | 8 // You may obtain a copy of the License at |
tomwalters@296 | 9 // |
tomwalters@318 | 10 // http://www.apache.org/licenses/LICENSE-2.0 |
tomwalters@296 | 11 // |
tomwalters@318 | 12 // Unless required by applicable law or agreed to in writing, software |
tomwalters@318 | 13 // distributed under the License is distributed on an "AS IS" BASIS, |
tomwalters@318 | 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
tomwalters@318 | 15 // See the License for the specific language governing permissions and |
tomwalters@318 | 16 // limitations under the License. |
tomwalters@296 | 17 |
tomwalters@296 | 18 /*! |
tomwalters@296 | 19 * \file |
tomwalters@296 | 20 * \brief Convert a file containing a list of pairs of tab-separated |
tomwalters@296 | 21 * items, one per line, and convert it to a vector<pair<string, string> > |
tomwalters@296 | 22 * |
tomwalters@296 | 23 * \author Thomas Walters <tom@acousticscale.org> |
tomwalters@296 | 24 * \date created 2010/02/23 |
tomwalters@296 | 25 * \version \$Id$ |
tomwalters@296 | 26 */ |
tomwalters@296 | 27 |
tomwalters@330 | 28 #if defined(_WINDOWS) |
tomwalters@330 | 29 # include <windows.h> |
tomwalters@330 | 30 # ifndef PATH_MAX |
tomwalters@330 | 31 # define PATH_MAX _MAX_PATH |
tomwalters@330 | 32 # endif |
tomwalters@330 | 33 #endif |
tomwalters@330 | 34 #include <limits.h> |
tomwalters@296 | 35 #include <string> |
tomwalters@296 | 36 #include <utility> |
tomwalters@296 | 37 #include <vector> |
tomwalters@296 | 38 |
tomwalters@296 | 39 #include "Support/Common.h" |
tomwalters@296 | 40 |
tomwalters@296 | 41 namespace aimc { |
tomwalters@296 | 42 using std::vector; |
tomwalters@296 | 43 using std::pair; |
tomwalters@296 | 44 using std::string; |
tomwalters@296 | 45 class FileList { |
tomwalters@296 | 46 public: |
tomwalters@296 | 47 static vector<pair<string, string> > Load(string filename); |
tomwalters@296 | 48 }; |
tomwalters@296 | 49 } // namespace aimc |