-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathItem.h
31 lines (28 loc) · 864 Bytes
/
Item.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
//Sina Lahsaee
//129948162
#pragma once
// CustomerOrder Milestone - Item Interface
// Item.h
// Chris Szalwinski
// v1.0 - 9/11/2015
// v2.0 - 23/02/2016
#include <iostream>
#include <string>
const unsigned int CODE_WIDTH = 5;
class Item {
std::string name; // name of the component
std::string filler; // name of the filler task
std::string remover; // name of the remover task
std::string description; // detailed description
unsigned int code; // next shipping label
static size_t field_width; // current maximum field width
public:
Item(const std::string& = std::string());
bool empty() const;
int operator++(int);
unsigned int getCode() const;
const std::string& getName() const;
const std::string& getFiller() const;
const std::string& getRemover() const;
void display(std::ostream&, bool = false) const;
};