consolidate all repos to one for archive
This commit is contained in:
29
semester_2/programiranje_2/naloga1002/Literature.h
Normal file
29
semester_2/programiranje_2/naloga1002/Literature.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef NALOGA0201_LITERATURE_H
|
||||
#define NALOGA0201_LITERATURE_H
|
||||
|
||||
#include "Artwork.h"
|
||||
#include <iostream>
|
||||
|
||||
enum class LiteratureType
|
||||
{
|
||||
Drama, Biography, Poetry, Prose, ScienceFiction,
|
||||
};
|
||||
|
||||
class Literature : public Artwork
|
||||
{
|
||||
private:
|
||||
LiteratureType material;
|
||||
public:
|
||||
Literature(std::string title, std::string description, int price, int year, std::shared_ptr<Artist> artist, double width, double height, double depth, LiteratureType material);
|
||||
|
||||
Literature();
|
||||
|
||||
std::string getMaterial() const;
|
||||
|
||||
std::string toString() const override;
|
||||
|
||||
void print() const;
|
||||
};
|
||||
|
||||
|
||||
#endif //NALOGA0201_LITERATURE_H
|
||||
Reference in New Issue
Block a user