IODA Bundle
FileMapper Class Reference

#include <FileMapper.h>

Inheritance diagram for FileMapper:
[legend]
Collaboration diagram for FileMapper:
[legend]

Public Member Functions

 FileMapper (const std::string &pathNameSchema)
 
 ~FileMapper ()
 
void addRoot (const std::string &)
 
void addRoots (const std::vector< std::string > &)
 
void checkRoots () const
 
std::string encodeRelative (const std::map< std::string, std::string > &values) const
 
std::vector< std::string > encode (const std::map< std::string, std::string > &values) const
 
std::vector< std::string > keywords () const
 

Protected Member Functions

void parsePathNameSchema (const std::string &pathNameSchema)
 

Private Member Functions

std::string patchTime (const std::string &) const
 

Private Attributes

std::vector< std::string > placeholders_
 
std::vector< std::string > separators_
 
std::vector< std::string > roots_
 

Detailed Description

Definition at line 19 of file FileMapper.h.

Constructor & Destructor Documentation

◆ FileMapper()

FileMapper::FileMapper ( const std::string &  pathNameSchema)

Definition at line 30 of file FileMapper.cc.

◆ ~FileMapper()

FileMapper::~FileMapper ( )

Definition at line 35 of file FileMapper.cc.

Member Function Documentation

◆ addRoot()

void FileMapper::addRoot ( const std::string &  p)

Definition at line 101 of file FileMapper.cc.

Here is the call graph for this function:

◆ addRoots()

void FileMapper::addRoots ( const std::vector< std::string > &  roots)

Definition at line 106 of file FileMapper.cc.

Here is the caller graph for this function:

◆ checkRoots()

void FileMapper::checkRoots ( ) const

Definition at line 39 of file FileMapper.cc.

Here is the caller graph for this function:

◆ encode()

vector< string > FileMapper::encode ( const std::map< std::string, std::string > &  values) const

Definition at line 193 of file FileMapper.cc.

Here is the caller graph for this function:

◆ encodeRelative()

string FileMapper::encodeRelative ( const std::map< std::string, std::string > &  values) const
Note
behaviour here has been changed. Old behaviour ran patchTime on both TIME and ANTIME, this does not match correct usage in (ECMWF) operations, and this now ONL patches ANTIME, unles overridden with a Resource

Definition at line 146 of file FileMapper.cc.

Here is the caller graph for this function:

◆ keywords()

std::vector< std::string > FileMapper::keywords ( ) const

Definition at line 99 of file FileMapper.cc.

◆ parsePathNameSchema()

void FileMapper::parsePathNameSchema ( const std::string &  pathNameSchema)
protected

Definition at line 66 of file FileMapper.cc.

◆ patchTime()

string FileMapper::patchTime ( const std::string &  ) const
private

Definition at line 112 of file FileMapper.cc.

Member Data Documentation

◆ placeholders_

std::vector<std::string> FileMapper::placeholders_
private

Definition at line 39 of file FileMapper.h.

◆ roots_

std::vector<std::string> FileMapper::roots_
private

Definition at line 42 of file FileMapper.h.

◆ separators_

std::vector<std::string> FileMapper::separators_
private

Definition at line 40 of file FileMapper.h.


The documentation for this class was generated from the following files: