﻿#ifndef XPOST_H
#define XPOST_H
#include "postcommand.h"
#include "PostMachine.h"
#include <QDebug>
#include <string>
#include <vector>
#include <map>

using namespace std;
class PostData
{
public :
    PostData();
    void IniltData();
    void SetCommands();
    void SetProgramParameters();
    void SetPathParameters();
    void SetControlStitchParameters();
    void SetMoveParameters();
    void SetSystemCoordinateParameters();
    void SetToolParameters();
    void SetDrillParameters();
    void SetWorkPlaneParameters();
    void SetDefaultFormats();

	PostMachineInfo MachineInfo;
    vector<postCommand> vCommands;//命令
    map<int,postCommand> CommandsMap;//命令
    map<int,PostParameter> ParametersMap;//参数
    map<int,ParameterFormat> FormatsMap;//格式
};

class XPost
{
public :
    XPost();
    QString FileName;
    QString FilePath;
    PostData postData;
};

#endif // XPOST_H
