FileSpecFind.hpp
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
4 //
5 // The GNSSTk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published
7 // by the Free Software Foundation; either version 3.0 of the License, or
8 // any later version.
9 //
10 // The GNSSTk is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with GNSSTk; if not, write to the Free Software Foundation,
17 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 //
19 // This software was developed by Applied Research Laboratories at the
20 // University of Texas at Austin.
21 // Copyright 2004-2022, The Board of Regents of The University of Texas System
22 //
23 //==============================================================================
24 
25 //==============================================================================
26 //
27 // This software was developed by Applied Research Laboratories at the
28 // University of Texas at Austin, under contract to an agency or agencies
29 // within the U.S. Department of Defense. The U.S. Government retains all
30 // rights to use, duplicate, distribute, disclose, or release this software.
31 //
32 // Pursuant to DoD Directive 523024
33 //
34 // DISTRIBUTION STATEMENT A: This software has been approved for public
35 // release, distribution is unlimited.
36 //
37 //==============================================================================
38 
39 #ifndef FILESPECFIND_HPP
40 #define FILESPECFIND_HPP
41 
42 #include <list>
43 #include <string>
44 #include "CommonTime.hpp"
45 #include "FileSpec.hpp"
46 
47 class FileSpecFind_T;
48 
49 namespace gnsstk
50 {
52 
53 
84  {
85  public:
87  typedef std::multimap<FileSpec::FileSpecType, std::string> Filter;
88 
109  static std::list<std::string> find(
110  const std::string& fileSpec,
111  const CommonTime& start,
112  const CommonTime& end,
114 
116  static std::list<std::string> find(
117  const FileSpec& fileSpec,
118  const CommonTime& start,
119  const CommonTime& end,
121  { return find(fileSpec.getSpecString(), start, end, fsts); }
122 
136  static std::list<std::string> find(
137  const std::string& fileSpec,
138  const CommonTime& start,
139  const CommonTime& end,
140  const Filter& filter);
141 
143  static std::list<std::string> find(
144  const FileSpec& fileSpec,
145  const CommonTime& start,
146  const CommonTime& end,
147  const Filter& filter)
148  { return find(fileSpec.getSpecString(), start, end, filter); }
149 
150  private:
159  static std::string transToken(const std::string& token);
160 
180  static std::list<std::string> findGlob(
181  const CommonTime& start,
182  const CommonTime& end,
183  const std::string& spec,
184  const FileSpec::FSTStringMap& dummyFSTS,
185  const Filter& filter,
186  const std::string& matched = "",
187  std::string::size_type pos = 0);
188 
189  friend class ::FileSpecFind_T;
190  };
192 }
193 
194 #endif // FILESPECFIND_HPP
gnsstk::FileSpec::FSTStringMap
std::map< FileSpecType, std::string > FSTStringMap
Definition: FileSpec.hpp:136
gnsstk::FileSpecFind::Filter
std::multimap< FileSpec::FileSpecType, std::string > Filter
Data type for storing desired FileSpec values.
Definition: FileSpecFind.hpp:87
gnsstk::FileSpecFind::transToken
static std::string transToken(const std::string &token)
Definition: FileSpecFind.cpp:308
FileSpecFind_T
Definition: FileSpecFind_T.cpp:59
gnsstk::FileSpecFind
Definition: FileSpecFind.hpp:83
gnsstk::FileSpecFind::findGlob
static std::list< std::string > findGlob(const CommonTime &start, const CommonTime &end, const std::string &spec, const FileSpec::FSTStringMap &dummyFSTS, const Filter &filter, const std::string &matched="", std::string::size_type pos=0)
Definition: FileSpecFind.cpp:474
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::FileSpecFind::find
static std::list< std::string > find(const std::string &fileSpec, const CommonTime &start, const CommonTime &end, const FileSpec::FSTStringMap &fsts=FileSpec::FSTStringMap())
Definition: FileSpecFind.cpp:225
gnsstk::FileSpec
Definition: FileSpec.hpp:80
FileSpec.hpp
gnsstk::CommonTime
Definition: CommonTime.hpp:84
gnsstk::FileSpec::getSpecString
virtual std::string getSpecString(void) const
Returns the string of the filespec.
Definition: FileSpec.hpp:164
gnsstk::FileSpecFind::find
static std::list< std::string > find(const FileSpec &fileSpec, const CommonTime &start, const CommonTime &end, const FileSpec::FSTStringMap &fsts=FileSpec::FSTStringMap())
Definition: FileSpecFind.hpp:116
example4.pos
pos
Definition: example4.py:125
CommonTime.hpp
gnsstk::FileSpecFind::find
static std::list< std::string > find(const FileSpec &fileSpec, const CommonTime &start, const CommonTime &end, const Filter &filter)
Definition: FileSpecFind.hpp:143


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39