-
Notifications
You must be signed in to change notification settings - Fork 0
/
Publication.h
52 lines (35 loc) · 1.01 KB
/
Publication.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef PUBLICATION_H
#define PUBLICATION_H
#include <iostream>
#include "Streamable.h"
#include "Date.h"
#include "Lib.h"
namespace sdds {
class Publication : public Streamable {
char* m_title;
char m_shelfId[SDDS_SHELF_ID_LEN + 1];
int m_membership;
int m_libRef;
Date m_date;
public:
Publication();
void setEmpty();
~Publication();
Publication(const Publication& publication);
Publication& operator=(const Publication& publication);
virtual void set(int);
void setRef(int value);
void resetDate();
virtual char type() const;
bool onLoan() const;
Date checkoutDate() const;
bool operator==(const char* title) const;
operator const char* () const;
int getRef() const;
bool conIO(std::ios& io) const;
std::ostream& write(std::ostream& os) const;
std::istream& read(std::istream& is);
operator bool() const;
};
}
#endif