Skip to content

Class jac::Uploader

ClassList > jac > Uploader

Public Types

Type Name
enum uint8_t Command
enum uint8_t Error

Public Functions

Type Name
Uploader (std::unique_ptr< InputPacketCommunicator > input, std::unique_ptr< OutputPacketCommunicator > output, TimeoutLock & lock, std::filesystem::path rootDir, std::function< void(std::filesystem::path)> formatFS, std::unordered_map< std::string, std::span< const uint8_t >> resources)
Uploader (const Uploader &) = delete
Uploader (Uploader &&) = delete
void lockTimeout ()
Uploader & operator= (const Uploader &) = delete
Uploader & operator= (Uploader &&) = delete
void start ()
~Uploader ()

Public Types Documentation

enum Command

enum jac::Uploader::Command {
    READ_FILE = 0x01,
    WRITE_FILE = 0x02,
    DELETE_FILE = 0x03,
    LIST_DIR = 0x04,
    CREATE_DIR = 0x05,
    DELETE_DIR = 0x06,
    FORMAT_STORAGE = 0x07,
    LIST_RESOURCES = 0x08,
    READ_RESOURCE = 0x09,
    HAS_MORE_DATA = 0x10,
    LAST_DATA = 0x11,
    OK = 0x20,
    ERROR = 0x21,
    NOT_FOUND = 0x22,
    CONTINUE = 0x23,
    LOCK_NOT_OWNED = 0x24,
    GET_DIR_HASHES = 0x25
};

enum Error

enum jac::Uploader::Error {
    UNKNOWN_COMMAND = 0x01,
    FILE_OPEN_FAILED = 0x02,
    FILE_DELETE_FAILED = 0x03,
    DIR_OPEN_FAILED = 0x04,
    DIR_CREATE_FAILED = 0x05,
    DIR_DELETE_FAILED = 0x06,
    INVALID_FILENAME = 0x07
};

Public Functions Documentation

function Uploader [1/3]

inline jac::Uploader::Uploader (
    std::unique_ptr< InputPacketCommunicator > input,
    std::unique_ptr< OutputPacketCommunicator > output,
    TimeoutLock & lock,
    std::filesystem::path rootDir,
    std::function< void(std::filesystem::path)> formatFS,
    std::unordered_map< std::string, std::span< const uint8_t >> resources
) 

function Uploader [2/3]

jac::Uploader::Uploader (
    const Uploader &
) = delete

function Uploader [3/3]

jac::Uploader::Uploader (
    Uploader &&
) = delete

function lockTimeout

void jac::Uploader::lockTimeout () 

function operator=

Uploader & jac::Uploader::operator= (
    const Uploader &
) = delete

function operator=

Uploader & jac::Uploader::operator= (
    Uploader &&
) = delete

function start

inline void jac::Uploader::start () 

function ~Uploader

inline jac::Uploader::~Uploader () 


The documentation for this class was generated from the following file src/jac/device/uploader.h