CCSDS 124.0-B-1 C++ 1.0.0
CCSDS 124.0-B-1 Lossless Compression
Loading...
Searching...
No Matches
encoder.cpp File Reference

Encoder compilation unit. More...

Include dependency graph for encoder.cpp:

Go to the source code of this file.

Detailed Description

Encoder compilation unit.

This file exists for library structure purposes. The encoding functions (COUNT, RLE, BE) are implemented entirely in the header file (encoder.hpp) because:

  1. Encoder functions are templates parameterized by buffer/vector sizes
  2. C++ requires template implementations to be visible at instantiation
  3. Header-only design is standard for template-heavy libraries

Encoding functions implemented in encoder.hpp:

  • count_encode() - CCSDS 124.0-B-1 Section 5.2.2, Equation 9
  • rle_encode() - CCSDS 124.0-B-1 Section 5.2.3, Equation 10
  • bit_extract() - CCSDS 124.0-B-1 Section 5.2.4, Equation 11

This .cpp file:

  • Includes the header to verify it compiles correctly in isolation
  • Provides a compilation unit for the static library
  • Can hold non-template utilities if needed in the future
See also
include/ccsds124/encoder.hpp for the full implementation

Definition in file encoder.cpp.