Reading G_code in Local File System and encoding int array. this program is improvement edition of Make Sequencer and Make Sequencer 2. So,I want to use this program. Sample Code including in this cpp file. Solves arrays bug(Dynamic allocation,Initialize,release...)

Fork of MakeSequencer by yuki sato

MakeSequencer.h

Committer:
satoyuki1111
Date:
2018-10-17
Revision:
5:9b4fcc87af6a
Parent:
4:1e606e2301f9

File content as of revision 5:9b4fcc87af6a:

#ifndef MAKESEQ_H
#define MAKESEQ_H

#include "mbed.h"
#include "string"
#define CODE_LENGTH 15
#define ARRAY_EREMENT 6
#define BUF 256


class MakeSequencer
{
    public:
    MakeSequencer(FILE *fp);
    bool FileOpen();
    void getGcode(int row,int aSize,int* array);
    int  getGcodeSize();
    bool ReadGcode();
    
    private: 
    int    _data[ARRAY_EREMENT][CODE_LENGTH];
    int    _codesize;
    int    _ele;
    int    _count;
    LocalFileSystem *_local;
    FILE *_fp;
};

#endif