Operator << print all Form information
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@@ -105,8 +105,10 @@ std::ostream& operator<<(std::ostream &os, const AForm &form)
|
|||||||
} else {
|
} else {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user