3 #include "Instrument.h" string brand
Brand Name of Product.
Definition: Instrument.h:12
string GetStandardTuning()
Accessor function.
Definition: StringedInstrument.cpp:50
Definition: StringedInstrument.h:9
void SetStringType(int)
Mutator function.
Definition: StringedInstrument.cpp:65
static const int nylon
a constant value for the string_type member
Definition: StringedInstrument.h:18
double cost
Wholesale Price.
Definition: Instrument.h:14
string model
Model Name of Product.
Definition: Instrument.h:13
void SetStandardTuning(string)
Mutator function.
Definition: StringedInstrument.cpp:64
int GetStringType()
Accessor function.
Definition: StringedInstrument.cpp:51
double retail_price
Retail Price.
Definition: Instrument.h:15
string GetStringTypeName()
return a string representing the string type instead of the int value
Definition: StringedInstrument.cpp:52
static const int steel
a constant value for the string_type member
Definition: StringedInstrument.h:19
string ToMembersXML()
return a string represention of all the data in the class serialized as XML without the outer class t...
Definition: StringedInstrument.cpp:5
string ToString()
Returns a string representation of the data in the class.
Definition: StringedInstrument.cpp:26
StringedInstrument(string brand="", string model="", double cost=0, double retail_price=0, short int string_type=StringedInstrument::nylon, string standard_tuning="")
Definition: StringedInstrument.cpp:16
short int string_type
An integer value that represents the material type of the strings.
Definition: StringedInstrument.h:13
string ToXML()
return a string represention of the entire class serialized as XML
Definition: StringedInstrument.cpp:36
string standard_tuning
A string representation of the default note for each string.
Definition: StringedInstrument.h:12
Definition: Instrument.h:9
static const int rubber
a constant value for the string_type member
Definition: StringedInstrument.h:20