PRISM
 v0.0.0
Loading...
Searching...
No Matches
DefaultTableWriter.h
1//* This file is a part of PRISM: Plasma Reaction Input SysteM,
2//* A library for parcing chemical reaction networks for plasma chemistry
3//* https://github.com/NCSU-ComPS-Group/prism
4//*
5//* Licensed under MIT, please see LICENSE for details
6//* https://opensource.org/license/mit
7//*
8//* Copyright 2024, North Carolina State University
9//* ALL RIGHTS RESERVED
10//*
11#pragma once
12
13#include "TableWriterBase.h"
14
15namespace prism
16{
17class DefaultTableWriter : public TableWriterBase
18{
19public:
20 DefaultTableWriter();
21
22 virtual void beginDocument(const std::vector<std::string> & bib_files) override;
23 virtual void endDocument() override;
24 void beginTable();
25 void endTable();
26 virtual void beginRateBasedSection() override;
27 virtual void beginXSecBasedSection() override;
28 virtual void beginFunctionalTable() override { beginTable(); }
29 virtual void endFunctionalTable() override { endTable(); }
30 virtual void beginTabulatedTable() override { beginTable(); }
31 virtual void endTabulatedTable() override { endTable(); }
32 virtual void addFunctionalReaction(const std::shared_ptr<const Reaction> & r) override;
33 virtual void addTabulatedReaction(const std::shared_ptr<const Reaction> & r) override;
34 virtual void addNotes(const std::vector<std::string> & notes) override;
35};
36}
virtual void beginRateBasedSection() override
Adds a section header before the rate based reactions are put in the table.
Definition DefaultTableWriter.C:83
virtual void addTabulatedReaction(const std::shared_ptr< const Reaction > &r) override
Specification for how to format a row for a single reaction which has data that is collected from a f...
Definition DefaultTableWriter.C:114
virtual void beginXSecBasedSection() override
Adds a section header before the cross section based reactions are put in the table.
Definition DefaultTableWriter.C:90
virtual void beginDocument(const std::vector< std::string > &bib_files) override
Adds the document preamble to start of the latex doc.
Definition DefaultTableWriter.C:26
virtual void endTabulatedTable() override
Adds the end of the table for reactions which have data that is collected from a file.
Definition DefaultTableWriter.h:31
virtual void beginTabulatedTable() override
Adds the beginning of the table for reactions which have data that is collected from a file.
Definition DefaultTableWriter.h:30
virtual void endFunctionalTable() override
Adds the end of the table for reactions which have functional data.
Definition DefaultTableWriter.h:29
virtual void addFunctionalReaction(const std::shared_ptr< const Reaction > &r) override
Specification for how to format a row for a single reaction which has data that can be sampled via a ...
Definition DefaultTableWriter.C:97
virtual void beginFunctionalTable() override
Adds the beginning of the table for reactions which have functional data.
Definition DefaultTableWriter.h:28
virtual void addNotes(const std::vector< std::string > &notes) override
Method for adding notes to the end of a single reaction additionally this method should be used to he...
Definition DefaultTableWriter.C:128
virtual void endDocument() override
Adds the end of the document.
Definition DefaultTableWriter.C:50
TableWriterBase(unsigned int max_rows=32)
Helper for generating a latex table based on the reaction mechanism.
Definition TableWriterBase.h:30