CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
File.cc File Reference
#include "File.h"
#include <spdlog/fmt/fmt.h>
#include <fstream>
#include <regex>
#include "String.h"
Include dependency graph for File.cc:

Functions

uint32_t GetMagicNumber (const std::string &filename)
 
bool IsCompressedFits (const std::string &filename)
 
bool IsRemoteHttpFile (const std::string &filename)
 
bool IsGzMagicNumber (uint32_t magic_number)
 
int GetNumItems (const std::string &path)
 
fs::path SearchPath (std::string filename)
 
CARTA::FileType GuessImageType (const std::string &path_string, bool check_content)
 
CARTA::FileType GuessRegionType (const std::string &path_string, bool check_content)
 
CARTA::CatalogFileType GuessTableType (const std::string &path_string, bool check_content)
 

Function Documentation

◆ GetMagicNumber()

uint32_t GetMagicNumber ( const std::string &  filename)
Here is the caller graph for this function:

◆ GetNumItems()

int GetNumItems ( const std::string &  path)
Here is the caller graph for this function:

◆ GuessImageType()

CARTA::FileType GuessImageType ( const std::string &  path_string,
bool  check_content 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GuessRegionType()

CARTA::FileType GuessRegionType ( const std::string &  path_string,
bool  check_content 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GuessTableType()

CARTA::CatalogFileType GuessTableType ( const std::string &  path_string,
bool  check_content 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsCompressedFits()

bool IsCompressedFits ( const std::string &  filename)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsGzMagicNumber()

bool IsGzMagicNumber ( uint32_t  magic_number)
Here is the caller graph for this function:

◆ IsRemoteHttpFile()

bool IsRemoteHttpFile ( const std::string &  filename)
Here is the caller graph for this function:

◆ SearchPath()

fs::path SearchPath ( std::string  filename)
Here is the call graph for this function:
Here is the caller graph for this function: