initial upload

This commit is contained in:
2024-09-10 20:25:18 +08:00
parent b8de03ee4f
commit f1cc876972
377 changed files with 2721267 additions and 34 deletions

56
gm3d/disp_help.h Normal file
View File

@@ -0,0 +1,56 @@
#ifndef _DISPHELP_H
#define _DISPHELP_H
#include <iostream>
#include <sstream>
#include <fstream>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <iomanip>
#include <sys/ioctl.h>
#include "vector"
using namespace std;
typedef vector<string> strArray;
struct option_gm3d
{
string flag_s,flag_l;
string message;
strArray sec_message;
option_gm3d()
{
flag_s = flag_l = message = "";
}
};
typedef vector<option_gm3d> opArray;
class DispHelp_GM3D
{
public:
DispHelp_GM3D(){
front_space = 0;
back_space = 10;
ex_name = "Execuable";
version = "0.0.1";
descript = "Brief information about this command.";
author = "Author's information.";
}
~DispHelp_GM3D(){}
void addHeadInfo(string,string,string,string);
void addUsage(string);
void addOption(string,string,string lflag = "");
void addOptionSec(string,int index = -1);
void addExample(string);
void changeLayerOut(int,int);
void show();
private:
string ex_name,version,descript,author;
int front_space,back_space;
opArray options;
strArray examples;
strArray usages;
};
#endif