sectionBuffer.h 744 Bytes
/* Modificado por: @Felipe Lacet
 * Ultima Atualização: 08/10/2008
 *
 * sectionBuffer.h
 * 
 */
#ifndef QUEUE_H_
#define QUEUE_H_
#include "section_hal.h"

#define MAX_SECTIONS_COUNT (20)

#define SECTIONS_BUFFER_SIZE (MAX_SECTIONS_COUNT*MAX_SECTION_SIZE)

class SectionBuffer{

private:
    unsigned char sectionsBufferData[SECTIONS_BUFFER_SIZE];
    int sectionsBufferBegin;
    int sectionsBufferEnd;
    int bufferSectionsCount;

public:
    SectionBuffer();
    ~SectionBuffer();
    void copyData(unsigned char *data, int *position, int size, int fromBuffer);
    void initSectionsBuffer();
    int getSectionsCount();
    void addSection(unsigned char *section);
    void removeSection(unsigned char *section);

};

#endif //QUEUE_H_