Operator << print all Form information

This commit is contained in:
aortigos
2026-03-16 10:11:47 +01:00
parent 089eede851
commit 5fc246dd21
3 changed files with 13 additions and 7 deletions

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */ /* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/21 12:11:18 by aortigos #+# #+# */ /* Created: 2026/02/21 12:11:18 by aortigos #+# #+# */
/* Updated: 2026/02/21 12:11:18 by aortigos ### ########.fr */ /* Updated: 2026/03/16 10:10:59 by aortigos ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@@ -105,7 +105,9 @@ std::ostream& operator<<(std::ostream &os, const Form &form)
isItSigned = " is not signed."; isItSigned = " is not signed.";
} }
os << form.getName() << isItSigned; os << form.getName() << isItSigned
<< "Grade to execute: " << this->gradeToExecute
<< "Grade to sign: " << this->gradeToSign;
return (os); return (os);
} }

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */ /* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/21 12:12:17 by aortigos #+# #+# */ /* Created: 2026/02/21 12:12:17 by aortigos #+# #+# */
/* Updated: 2026/02/21 12:12:17 by aortigos ### ########.fr */ /* Updated: 2026/03/16 10:11:21 by aortigos ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@@ -106,7 +106,9 @@ std::ostream& operator<<(std::ostream &os, const AForm &form)
isItSigned = " is not signed."; isItSigned = " is not signed.";
} }
os << form.getName() << isItSigned; os << form.getName() << isItSigned
<< "Grade to execute: " << this->gradeToExecute
<< "Grade to sign: " << this->gradeToSign;
return (os); return (os);
} }

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */ /* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/21 12:13:40 by aortigos #+# #+# */ /* Created: 2026/02/21 12:13:40 by aortigos #+# #+# */
/* Updated: 2026/02/21 12:13:40 by aortigos ### ########.fr */ /* Updated: 2026/03/16 10:11:30 by aortigos ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@@ -106,7 +106,9 @@ std::ostream& operator<<(std::ostream &os, const AForm &form)
isItSigned = " is not signed."; isItSigned = " is not signed.";
} }
os << form.getName() << isItSigned; os << form.getName() << isItSigned
<< "Grade to execute: " << this->gradeToExecute
<< "Grade to sign: " << this->gradeToSign;
return (os); return (os);
} }