Stringed Instruments, Inheritance Demo
|
#include <Electric.h>
Public Member Functions | |
string | ToXML () |
return a string represention of all the data in the class serialized as XML | |
string | ToString () |
Returns a string representation of the data in the class. | |
Electric (string bridge_pickup="", string center_pickup="", string neck_pickup="") | |
void | SetBridgePickup (string) |
mutator funcion | |
void | SetCenterPickup (string) |
mutator funcion | |
void | SetNeckPickup (string) |
mutator funcion | |
string | GetBridgePickup () |
accessor function | |
string | GetCenterPickup () |
accessor function | |
string | GetNeckPickup () |
accessor function | |
Protected Member Functions | |
string | ToMembersXML () |
Returns an XML string of the data in the class wihout the outer tag with the classname. | |
Protected Attributes | |
string | bridge_pickup |
description of the bridge pickup | |
string | center_pickup |
description of the center pickup | |
string | neck_pickup |
description of the neck pickup | |
A class to add in the electronic components to an Instrument
Electric::Electric | ( | string | bridge_pickup = "" , |
string | center_pickup = "" , |
||
string | neck_pickup = "" |
||
) |
Parameterized constructor, with default values for all the fields