Skip to content

Commit

Permalink
improve header hygiene
Browse files Browse the repository at this point in the history
  • Loading branch information
chainsawriot committed Aug 27, 2023
1 parent bcff01a commit 7f3b3b7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/read_ods_internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#include "cpp11.hpp"
#include "cpp11/r_string.hpp"

// #include "rapidxml/rapidxml.hpp"
#include "rapidxml/rapidxml_ext.hpp"
#include "rapidxml/rapidxml.hpp"

#include <vector>
#include <string>
Expand Down
5 changes: 1 addition & 4 deletions src/splice.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#include "is_ods.h"
#include "read_ods_internals.h"
#include "write_sheet_.h"
#include "rapidxml/rapidxml_utils.hpp"
#include "splice.h"

[[cpp11::register]]
std::string splice_sheet(const std::string original_xml, const std::string sheet_xml, const bool flat) {
Expand Down
12 changes: 12 additions & 0 deletions src/splice.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once

#include "cpp11.hpp"
#include "cpp11/r_string.hpp"
#include <fstream>
#include <string>

#include "rapidxml/rapidxml_ext.hpp"
#include "rapidxml/rapidxml_utils.hpp"

std::string splice_sheet_(const std::string original_xml, const std::string sheet_xml, const bool flat);
std::string update_sheet_(const std::string original_xml, const std::string sheet_xml, const bool flat, const int sheet);

0 comments on commit 7f3b3b7

Please sign in to comment.