ManageType.h 593 Bytes
#pragma once
#include"MusicType.h"


class ManageType {
private:
	MusicType* mptr;
	bool Isdeleted;
public:
	ManageType() {
		bool Isdeleted = false;
		mptr = NULL;
	};
	~ManageType() {};
	void setPtr(MusicType* P)
	{
		mptr = P;
	}
	MusicType* getPtr()
	{
		return mptr;
	}
	void Deleted()
	{
		Isdeleted = true;
		mptr = NULL;
	}
	int getIndex()
	{
		if (Isdeleted == false)
		{
			return (mptr->GetNum());
		}
	}
	string getName()
	{	if(Isdeleted == false)
		return mptr->GetName();
	}
	string getPkey()
	{	if(Isdeleted == false)
		return mptr->GetPkey();
	}
	void PrintNameNIndex();


};