Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flagarde/elogpp

Wrapper for elog https://elog.psi.ch/elog/
https://github.com/flagarde/elogpp

cpp cross-platform elog standalone wrapper

Last synced: about 1 month ago
JSON representation

Wrapper for elog https://elog.psi.ch/elog/

Awesome Lists containing this project

README

        

# elogpp

Wrapper for elog https://elog.psi.ch/elog/

## Goal

elogpp allows user to send and retrieve/parse entry from an elog server (see example).

> [📖 Documentation](https://flagarde.github.io/elogpp/) [![Docs](https://github.com/flagarde/elogpp/actions/workflows/Docs.yml/badge.svg)](https://github.com/flagarde/elogpp/actions/workflows/Docs.yml)

[LC]: https://github.com/flagarde/elogpp/actions/workflows/Linux-Clang.yml
[LCB]: https://github.com/flagarde/elogpp/actions/workflows/Linux-Clang.yml/badge.svg

[LG]: https://github.com/flagarde/elogpp/actions/workflows/Linux-GCC.yml
[LGB]: https://github.com/flagarde/elogpp/actions/workflows/Linux-GCC.yml/badge.svg

[MC]: https://github.com/flagarde/elogpp/actions/workflows/MacOS-Clang.yml
[MCB]: https://github.com/flagarde/elogpp/actions/workflows/MacOS-Clang.yml/badge.svg

[MG]: https://github.com/flagarde/elogpp/actions/workflows/MacOS-GCC.yml
[MGB]: https://github.com/flagarde/elogpp/actions/workflows/MacOS-GCC.yml/badge.svg

[MS]: https://github.com/flagarde/elogpp/actions/workflows/Windows-MSYS2.yml
[MSB]: https://github.com/flagarde/elogpp/actions/workflows/Windows-MSYS2.yml/badge.svg

[MM]: https://github.com/flagarde/elogpp/actions/workflows/Windows-MSVC.yml
[MMB]: https://github.com/flagarde/elogpp/actions/workflows/Windows-MSVC.yml/badge.svg

## Builds

| | Linux Clang | Linux GCC | MacOS Clang | MacOS GCC | Windows M2sys | Windows MSVC |
|--------|-------------|-----------|-------------|-----------|---------------|--------------|
| Github |[![Linux Clang][LCB]][LC]|[![Linux GCC][LGB]][LG]|[![MacOS Clang][MCB]][MC]|[![MacOS GCC][MGB]][MG]|[![Windows MSYS2][MSB]][MS]|[![Windows MSVC][MMB]][MM]|

## Use

* Write a configuration file :

```json
{
"ElogServers":
[
{
"Name":"Elog",
"Description":"Elog test server",
"Hostname":"localhost",
"Port":"8080",
"SSL":false,
"Logbooks":
[
{"Name":"demo", "Description":"demo"}
]
}
],
"ElogUsers":
[
{"Name":"toto","Password":"123456"}
]
}
```

* Export this configuration :
```bash
export ELOG_CONFIG_PATH=path
export ELOG_CONFIG_FILE=Elog.json
```

## Example :
```cpp
#include "ElogManager.hpp"
#include

using namespace elogpp;

int main()
{
ElogManager manager;
manager.print();
ElogEntry entry= manager.createEntry();
std::cout<<"*****************************************************"<