AnCH Framework
0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
format.hpp
1
/*
2
ANCH Framework: ANother C++ Hack is a C++ framework based on C++23 standard
3
Copyright (C) 2026 Vincent Lachenal
4
5
This file is part of ANCH Framework.
6
7
ANCH Framework is free software: you can redistribute it and/or modify
8
it under the terms of the GNU Lesser General Public License as published by
9
the Free Software Foundation, either version 3 of the License, or
10
(at your option) any later version.
11
12
ANCH Framework is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU Lesser General Public License for more details.
16
17
You should have received a copy of the GNU Lesser General Public License
18
along with ANCH Framework. If not, see <https://www.gnu.org/licenses/>.
19
*/
20
#pragma once
21
22
#include "anch-codec-export.hpp"
23
24
#include <string>
25
#include <vector>
26
27
namespace
anch::codec
{
28
38
struct
ANCH_CODEC_EXPORT
Format
{
40
std::string
name
;
41
43
std::vector<std::string>
mediaTypes
;
44
};
45
56
ANCH_CODEC_EXPORT
bool
registerFormat
(
anch::codec::Format
format);
57
65
ANCH_CODEC_EXPORT std::vector<anch::codec::Format>
formats
();
66
67
}
anch::codec
AnCH codec library namespace.
Definition
csv.hpp:31
anch::codec::registerFormat
bool registerFormat(anch::codec::Format format)
anch::codec::formats
std::vector< anch::codec::Format > formats()
anch::codec::Format
Definition
format.hpp:38
anch::codec::Format::mediaTypes
std::vector< std::string > mediaTypes
Definition
format.hpp:43
anch::codec::Format::name
std::string name
Definition
format.hpp:40
anch-codec
inc
codec
format.hpp
Generated by
1.18.0