.. _program_listing_file_include_dx2_scan.hpp: Program Listing for File scan.hpp ================================= |exhale_lsh| :ref:`Return to documentation for file ` (``include/dx2/scan.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include using json = nlohmann::json; class Scan { // A class to represent the physical measurement, consisting of the number of // images, starting oscillation and a constant oscillation width between // sequential images. This class MUST NOT be modified during processing or // used to track additional metadata. public: Scan() = default; Scan(std::array image_range, std::array oscillation); Scan(json scan_data); std::array get_image_range() const; std::array get_oscillation() const; json to_json() const; protected: std::array image_range_{{0, 0}}; int num_images_{0}; double oscillation_width_{0.0}; double oscillation_start_{0.0}; };