My INF224 lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Jean-Marie Mineau 1125870921 change link 2 years ago
.gitignore clean the file 2 years ago
Makefile clean the file 2 years ago
README.md add methodes to serialize groups and object inside a storage 2 years ago
cppsocket.cpp add files for a tcp server 2 years ago
cppsocket.h add files for a tcp server 2 years ago
film.cpp implement (de)serializer for film 2 years ago
film.h implement (de)serializer for film 2 years ago
group.cpp implement deserialize and deserialize_soft for group 2 years ago
group.h implement serialize en serialize_soft for Storage 2 years ago
main.cpp change link 2 years ago
multimedia.cpp add object factory 2 years ago
multimedia.h overload the >> and << operator for multimedia objects 2 years ago
myPicture.jpg add play methods 2 years ago
myVideo.mp4 add play methods 2 years ago
object_factory.cpp add object factory 2 years ago
object_factory.h add object factory 2 years ago
picture.cpp implement (de)serializer for Picture 2 years ago
picture.h implement (de)serializer for Video 2 years ago
save.txt change link 2 years ago
server.cpp implement commands for the server 2 years ago
server.h implement commands for the server 2 years ago
storage.cpp add a few error 2 years ago
storage.h add methodes to serialize groups and object inside a storage 2 years ago
tcpserver.cpp add files for a tcp server 2 years ago
tcpserver.h add files for a tcp server 2 years ago
video.cpp implement (de)serializer for Video 2 years ago
video.h implement (de)serializer for Video 2 years ago

README.md

First lab of the lecture INF224

Previous versions of the code can be found using git and tags.

Q5.

We are using polymorphism. In order to do that, we need to use virtual methodes declared for the mother class (those methodes can be abstract). The table contains pointers to objects that inherite from the mother class Multimedia. In Java we always use reference to objects.

git checkout tags/stage5 to see the main.cpp at this stage.

git switch - to go back to the HEAD.

Q7.

The class Film need a destructor to remove the array of chapters.

Film can't be copy easily, because of the chapters. A film contains a pointer to the chapter, and a copy of an instance will only copy the pointer, not the chapters. We need a deep copy to properly copy the chapters.

git checkout tags/stage7 to see the main.cpp at this stage.

git switch - to go back to the HEAD.

Q8

git checkout tags/stage8 to see the main.cpp at this stage.

git switch - to go back to the HEAD.

Q9

git checkout tags/stage9 to see the main.cpp at this stage.

git switch - to go back to the HEAD.

Q10

git checkout tags/stage10 to see the main.cpp at this stage.

git switch - to go back to the HEAD.

Q11

git checkout tags/stage11 to see the main.cpp at this stage.

git switch - to go back to the HEAD.

Q12

git checkout tags/stage12 to see the main.cpp at this stage.

git switch - to go back to the HEAD.