CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
File.h File Reference
#include <carta-protobuf/enums.pb.h>
#include "FileSystem.h"
Include dependency graph for File.h:
This graph shows which files directly or indirectly include this file:

Macros

#define FITS_MAGIC_NUMBER   0x504D4953
 
#define HDF5_MAGIC_NUMBER   0x46444889
 
#define XML_MAGIC_NUMBER   0x6D783F3C
 
#define FILE_LIST_FIRST_PROGRESS_AFTER_SECS   5
 
#define FILE_LIST_PROGRESS_INTERVAL_SECS   2
 
#define ALL_FILES   -1
 
#define TEMP_FILE_ID   -100
 

Functions

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)
 
uint32_t GetMagicNumber (const std::string &filename)
 
bool IsCompressedFits (const std::string &filename)
 
bool IsGzMagicNumber (uint32_t magic_number)
 
bool IsRemoteHttpFile (const std::string &filename)
 
int GetNumItems (const std::string &path)
 
fs::path SearchPath (std::string filename)
 

Macro Definition Documentation

◆ ALL_FILES

#define ALL_FILES   -1

◆ FILE_LIST_FIRST_PROGRESS_AFTER_SECS

#define FILE_LIST_FIRST_PROGRESS_AFTER_SECS   5

◆ FILE_LIST_PROGRESS_INTERVAL_SECS

#define FILE_LIST_PROGRESS_INTERVAL_SECS   2

◆ FITS_MAGIC_NUMBER

#define FITS_MAGIC_NUMBER   0x504D4953

◆ HDF5_MAGIC_NUMBER

#define HDF5_MAGIC_NUMBER   0x46444889

◆ TEMP_FILE_ID

#define TEMP_FILE_ID   -100

◆ XML_MAGIC_NUMBER

#define XML_MAGIC_NUMBER   0x6D783F3C

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: