diff --git a/CMakeLists.txt b/CMakeLists.txt index 84f4ba016..c2aa58b5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,17 +1,19 @@ cmake_minimum_required(VERSION 3.22) -project(evio VERSION 6.0 LANGUAGES C CXX) +project(evio VERSION 6.1.0 LANGUAGES C CXX) -# Build options (and defaults) -option(C_ONLY "SKIP building C++ library, build C only" OFF) -option(MAKE_EXAMPLES "Build example/test programs" OFF) -option(USE_FILESYSTEMLIB "Use C++17 instead of Boost" OFF) -option(DISRUPTOR_FETCH "Allow CMake to download Disruptor if not found" ON) # C/C++ standard and build options -set(CMAKE_CXX_STANDARD 17) +set(CMAKE_C_STANDARD 11) +set(CMAKE_C_STANDARD_REQUIRED ON) +set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_DEBUG_POSTFIX -dbg) add_compile_options(-Wall) +# Build options (and defaults) +option(C_ONLY "SKIP building C++ library, build C only" OFF) +option(MAKE_EXAMPLES "Build example/test programs" OFF) +option(USE_FILESYSTEMLIB "Use C++ instead of Boost" OFF) +option(DISRUPTOR_FETCH "Allow CMake to download Disruptor if not found" ON) include(GNUInstallDirs) include(FindPackageHandleStandardArgs) # find_package_handle_standard_args() include(CTest) @@ -222,7 +224,7 @@ if(DOXYGEN_FOUND) # Add target of "docC" doxygen_add_docs(docC src/libsrc COMMENT "Generating Doxygen documentation for C") -elseif(NOT C_ONLY) +else() message(WARNING "Doxygen NOT found, documentation will not be generated") endif() diff --git a/README.md b/README.md index 375fe2c80..5e3c0bb8f 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ Software Library Documentation: Other Links: * [EVIO Event Viewer on GitHub](https://github.com/JeffersonLab/JEventViewer) +* [pyevio: Python Based EVIO parser](https://github.com/JeffersonLab/pyevio) The EVIO-6 data format is closely related to the HIPO data format, following the same data diff --git a/java/jars/jevio-6.0.0-jar-with-dependencies.jar b/java/jars/jevio-6.0.0-jar-with-dependencies.jar new file mode 100644 index 000000000..c4c8c1af5 Binary files /dev/null and b/java/jars/jevio-6.0.0-jar-with-dependencies.jar differ diff --git a/java/jars/jevio-6.0.0.jar b/java/jars/jevio-6.0.0.jar new file mode 100644 index 000000000..317746627 Binary files /dev/null and b/java/jars/jevio-6.0.0.jar differ diff --git a/pom.xml b/pom.xml index fab9020fa..dc609d951 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 org.jlab.coda jevio - 6.0.0 + 6.1.0 Jefferson Lab EVIO Java Library (JEVIO) Java library for EVIO (Event Input/Output) jar @@ -13,7 +13,7 @@ - 15 + 17 ${java.version} ${java.version} @@ -42,6 +42,8 @@ ${lz4.version} + + com.lmax disruptor @@ -58,7 +60,6 @@ - @@ -85,33 +86,11 @@ - - - maven-assembly-plugin - 3.6.0 + 3.6.0 - jar-with-dependencies diff --git a/src/main/java/org/jlab/coda/jevio/dev/EvioReadFileSimple.java b/src/main/java/org/jlab/coda/jevio/dev/EvioReadFileSimple.java deleted file mode 100644 index 87ad6b312..000000000 --- a/src/main/java/org/jlab/coda/jevio/dev/EvioReadFileSimple.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2014, Jefferson Science Associates - * - * Thomas Jefferson National Accelerator Facility - * Data Acquisition Group - * - * 12000, Jefferson Ave, Newport News, VA 23606 - * Phone : (757)-269-7100 - * - */ - -package org.jlab.coda.jevio.dev; - -import java.io.IOException; - -import org.jlab.coda.jevio.EvioException; -import org.jlab.coda.jevio.EvioReader; - -public class EvioReadFileSimple { - - public static void main(String[] args) { - // This is a simple example of how to read an Evio file. - // It assumes that the Evio file is already created and contains events. - - if (args.length != 1) { - System.out.println("Usage: java EvioReadFileSimple "); - return; - } - - String filename = args[0]; // Replace with your Evio file name - - try { - EvioReader reader = new EvioReader(filename); - reader.addHeaderRecoveryCheck(); - - int evCount = reader.getEventCount(); - System.out.println("Number of events in file: " + evCount); - - reader.close(); - } catch (EvioException | IOException e) { - e.printStackTrace(); - } - } - -}