mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-06-19 01:58:15 +02:00
f31234bbc3
Build and Deploy on local RHEL9 / build (push) Successful in 2m1s
Build on RHEL9 docker image / build (push) Successful in 3m49s
Build on RHEL8 docker image / build (push) Successful in 5m1s
Build and Deploy on local RHEL8 / build (push) Successful in 5m6s
Run Simulator Tests on local RHEL9 / build (push) Successful in 18m17s
Run Simulator Tests on local RHEL8 / build (push) Successful in 21m56s
* add rx_restream_stop command. This allows to send a ZMQ dummy header any time user wants to do so. For example this allows to pre-configure the ZMQ processing software before the acquisition begins. Therefore, the dummy header was adapted in order to contain the fields stored in the receiver.
* renamed command, changed inherit, moved commands to zmq related section
* update filename in restreamstop
* renamed helper function, sorted header fields alphabetically
* fixed fnametostream set
* renamed functions, add SetFileName method, format JSON parameters order
* added python bindings and formatting (does nothing really)
* renamed restream stop functions to stream dummy
* checkout .github files from ed8c885
* release notes
---------
Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
// SPDX-License-Identifier: LGPL-3.0-or-other
|
|
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
#pragma once
|
|
|
|
#include "sls/sls_detector_defs.h"
|
|
|
|
#include <cstdio>
|
|
#include <fstream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace sls {
|
|
|
|
std::vector<char> readBinaryFile(const std::string &fname,
|
|
const std::string &errorPrefix);
|
|
|
|
// mkdir -p path implemented by recursive calls
|
|
void mkdir_p(const std::string &path, std::string dir = "");
|
|
|
|
int getFileSize(std::ifstream &ifs);
|
|
ssize_t getFileSize(FILE *fd, const std::string &prependErrorString);
|
|
|
|
std::string getFileNameFromFilePath(const std::string &fpath);
|
|
|
|
std::vector<int> getChannelsFromStringList(const std::vector<std::string> list);
|
|
|
|
/** File can have # for comments.
|
|
* Channels can be separated by spaces, commas
|
|
* and ranges provided using ':', eg. 23:29
|
|
* */
|
|
std::vector<int> getChannelsFromFile(const std::string &fname);
|
|
|
|
std::string getAbsolutePathFromCurrentProcess(const std::string &fname);
|
|
|
|
} // namespace sls
|