Skip to content

Commit

Permalink
add info to generated davis files
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeryStk authored and AntonMrt committed May 1, 2024
1 parent 81f7a93 commit 0993b30
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
8 changes: 6 additions & 2 deletions davis_one/davis.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@

//This file was generated by davis_one_maker.py script.
//Use davis_files.txt and special comments to change generated davis.h and davis.cpp

#include "davis.h"

#include <vector>
#include <sstream>
#include <iostream>
#include <vector>
#include <fstream>
#include <iostream>
#include <sys/stat.h>
namespace {
using std::string;
Expand Down
6 changes: 5 additions & 1 deletion davis_one/davis.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@

//This file was generated by davis_one_maker.py script.
//Use davis_files.txt and special comments to change generated davis.h and davis.cpp

#ifndef DAVIS_H_
#define DAVIS_H_

#include <string>
#include <memory>
#include <vector>
#include <string>
#include <iostream>
namespace {

Expand Down
7 changes: 7 additions & 0 deletions davis_one_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#################################################
########### CONSTANTS ###########
#################################################
GENERATED_INFO_HEADER = """
//This file was generated by davis_one_maker.py script.
//Use davis_files.txt and special comments to change generated davis.h and davis.cpp
"""
START_DAVIS_H = """#ifndef DAVIS_H_
#define DAVIS_H_
Expand Down Expand Up @@ -77,8 +82,10 @@ def grab_namespace_code(namespace_text_start,
delete_file_if_exists(OUTPUT_CPP_FILE_NAME)

file_h = open(OUTPUT_H_FILE_NAME, 'a')
file_h.write(GENERATED_INFO_HEADER)
file_h.write(START_DAVIS_H)
file_cpp = open(OUTPUT_CPP_FILE_NAME, 'a')
file_cpp.write(GENERATED_INFO_HEADER)
file_cpp.write(START_DAVIS_CPP)
is_grab_includes = False

Expand Down

0 comments on commit 0993b30

Please sign in to comment.