Keypop Reader C++ API 2.0.0
Reference Reader API for C++
FileOccurrence.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * This program and the accompanying materials are made available under the *
5 * terms of the MIT License which is available at *
6 * https://opensource.org/licenses/MIT. *
7 * *
8 * SPDX-License-Identifier: MIT *
9 ******************************************************************************/
10
11#pragma once
12
13#include <iostream>
14
15namespace keypop {
16namespace reader {
17namespace selection {
18
25enum class FileOccurrence {
31 FIRST,
32
38 LAST,
39
45 NEXT,
46
53};
54
55static inline std::ostream&
56operator<<(std::ostream& os, const FileOccurrence fo)
57{
58 os << "FILE_OCCURENCE: ";
59 switch (fo) {
61 os << "FIRST";
62 break;
64 os << "LAST";
65 break;
67 os << "NEXT";
68 break;
70 os << "PREVIOUS";
71 break;
72 default:
73 os << "UNKNOWN";
74 break;
75 }
76
77 return os;
78}
79
80} /* namespace selection */
81} /* namespace reader */
82} /* namespace keypop */