project.h

来自「标准C++编写的小小CRM软件,无任何平台依赖.采用标准XML作为数据库.只需重」· C头文件 代码 · 共 38 行

H
38
字号
#pragma once

#ifndef _PROJECT_
#define _PEOJECT_

#include <fstream>
#include <cstdio>
#include "ToolFun.h"
#include <algorithm>
#include <list>
#include "Customer.h"

using namespace std;

class Project
{
public:
	Project(void);
	~Project(void);
public:
	bool display(const string& proj );	// display all custermer in the project
	bool display();						// display all custermer in projects.
	bool add(const string& proj );		// create a project.
	bool joinCustomer( const string& proj,int id );	// add a customer to a project.
	bool chg( const string& proj, const string& newProj );// change a proejct's name.
	bool del(const string& proj );		// delete a project.
	bool remCustomer( const string& proj, int id );	// delete a customer form a project.
	bool save();						// save memory date back to project file
private:
	bool initProj();
private:
	multimap< string,int > projMap;
	list<string> projList;	// all project's name;
	Customer customer;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?