inlib
1.2.0
|
00001 // Copyright (C) 2010, Guy Barrand. All rights reserved. 00002 // See the file exlib.license for terms. 00003 00004 #ifndef inlib_vecs 00005 #define inlib_vecs 00006 00007 // used in exlib/sg/entries to handle opts mf. 00008 00009 #include <vector> 00010 #include <string> 00011 00012 namespace inlib { 00013 00014 class vecs : public std::vector<std::string> { 00015 public: 00016 vecs(){} 00017 vecs(const std::vector<std::string>& a_v):std::vector<std::string>(a_v){} 00018 vecs(const vecs& a_from): std::vector<std::string>(a_from){} 00019 vecs& operator=(const vecs& a_from){ 00020 std::vector<std::string>::operator=(a_from); 00021 return *this; 00022 } 00023 public: 00024 bool fill(const std::vector<std::string>&) { 00025 //for mf_vec::read(io::irbuf&) 00026 return false; 00027 } 00028 const std::vector<std::string>& vector() const {return *this;} 00029 }; 00030 00031 inline std::ostream& operator<<(std::ostream& a_out,const vecs&) { 00032 //for mf_vec::dump. 00033 return a_out; 00034 } 00035 00036 } 00037 00038 #endif