|
| Product (Product const &)=delete |
void | operator= (Product const &x)=delete |
void | set_product_timestamp (double timestamp) |
| Set product timestamp, optional. This is usually the rough creation time / acquisition time.
|
bool | has_product_timestamp () |
| Check if a product timestamp is present.
|
double | get_product_timestamp () |
| Get the product timestamp.
|
void | set_product_source (std::string source) |
| Set product source, optional. This is meant to contextualize where this product is from, eg which satellite.
|
bool | has_product_source () |
| Check if a product source is present.
|
std::string | get_product_source () |
| Get the product source.
|
void | set_product_id (std::string id) |
| Set product ID, optional. This is meant to, for example, differentiate several identical instruments.
|
bool | has_product_id () |
| Check if a product ID is present.
|
std::string | get_product_id () |
| Get the product ID.
|
virtual void | save (std::string directory) |
| Save the product. Depending on the type this will save a product.cbor and other files in the same directory (eg, images)
|
virtual void | load (std::string file) |
| Load the product. This should refer to the product.cbor file.
|
Core SatDump product class.
This is the base class of all products, images or anything else. They should ONLY be loaded using the loadProducts() function!
- Parameters
-
contents | raw JSON product data and/or description. Usually not accessed directly |
instrument_name | name (ID) of the instrument that generated the data, or other ID type if needed |
type | type of the product, set by the class using this as a base |