.. _program_listing_file_src_sparsebase_io_writer.h: Program Listing for File writer.h ================================= |exhale_lsh| :ref:`Return to documentation for file ` (``src/sparsebase/io/writer.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /******************************************************* * Copyright (c) 2022 SparCity, Amro Alabsi Aljundi, Taha Atahan Akyildiz, Arda *Sener All rights reserved. * * This file is distributed under MIT license. * The complete license agreement can be obtained at: * https://sparcityeu.github.io/sparsebase/pages/license.html ********************************************************/ #ifndef SPARSEBASE_SPARSEBASE_UTILS_IO_WRITER_H_ #define SPARSEBASE_SPARSEBASE_UTILS_IO_WRITER_H_ #include #include "sparsebase/format/array.h" #include "sparsebase/format/coo.h" #include "sparsebase/format/csc.h" #include "sparsebase/format/csr.h" #include "sparsebase/format/format.h" #include "sparsebase/format/format_order_one.h" #include "sparsebase/format/format_order_two.h" namespace sparsebase { namespace io { class Writer { public: virtual ~Writer() = default; }; template class WritesCSR { virtual void WriteCSR(format::CSR *csr) const = 0; }; template class WritesCOO { virtual void WriteCOO(format::COO *coo) const = 0; }; template class WritesArray { virtual void WriteArray(format::Array *arr) const = 0; }; } // namespace io } // namespace sparsebase #endif // SPARSEBASE_SPARSEBASE_UTILS_IO_WRITER_H_