style: use my one (with logic) norm for header hope u enjoy it

This commit is contained in:
Raphael 2024-12-23 14:36:04 +01:00
parent ff72109a4e
commit 2d6b2ddb83
13 changed files with 316 additions and 315 deletions

View file

@ -6,32 +6,32 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/05 15:27:45 by rparodi #+# #+# */
/* Updated: 2024/11/06 15:56:45 by rparodi ### ########.fr */
/* Updated: 2024/12/23 12:36:59 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef SED_HPP
#define SED_HPP
#include <iostream>
#include <streambuf>
#include <string>
#include <fstream>
#include "err_msg.hpp"
class Sed
{
public:
Sed(char **argv, std::ifstream *input);
~Sed();
bool line(std::ofstream& output);
const char *getFilename();
private:
std::string _filename;
std::string _to_replace;
std::string _by_word;
std::ifstream *_input;
};
#define SED_HPP
#include <iostream>
#include <streambuf>
#include <string>
#include <fstream>
#include "err_msg.hpp"
class Sed
{
public:
Sed(char **argv, std::ifstream *input);
~Sed();
bool line(std::ofstream& output);
const char *getFilename();
private:
std::string _filename;
std::string _to_replace;
std::string _by_word;
std::ifstream *_input;
};
#endif