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
Diff: MakeSequencer.h
- Revision:
- 1:4ebb30d54be7
- Parent:
- 0:359eba7592ca
- Child:
- 2:4fc4593498d7
--- a/MakeSequencer.h Tue Oct 09 12:19:02 2018 +0000 +++ b/MakeSequencer.h Wed Oct 10 05:34:43 2018 +0000 @@ -15,13 +15,14 @@ bool FileOpen(); void getGcode(int _seq,int* _array); bool ReadGcode(); + int getGcodeSize(); private: char buf[256]; string code[1][CODE_LENGTH]; int data[ARRAY_EREMENT][CODE_LENGTH]; bool find[ARRAY_EREMENT]; - const char* _name; + int codesize; LocalFileSystem *_local; FILE *_fp; };