/*
 ViewALS300data
 Copyright (C) 2010 Martin Štrympl
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public
 License as published by the Free Software Foundation; either
 version 3.0 of the License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 General Public License for more details.
 
 You should have received a copy of the GNU General Public
 License along with this program.
 
 Martin Štrympl
 xstrym00@stud.feec.vutbr.cz
 */
 
/* This code is copied from other Martin Štrympl's project under other licence. */

/*
 *  Array.h
 *  GerberConversion
 *
 *  Created by Martin Štrympl on 11/1/10.
 *  Copyright 2010 School. All rights reserved.
 *
 */

#include "Headers.h"

#ifndef ARRAY_H_INCLUDED
#define ARRAY_H_INCLUDED

struct sArray_TextArray;

struct sArray_TextArray * Array_TextArray_Construct();
void Array_TextArray_Destruct(struct sArray_TextArray *ps_array);

bool Array_TextArray_Add(struct sArray_TextArray *ps_array, const char *t_text);
bool Array_TextArray_Set(struct sArray_TextArray *ps_array, uint32_t u4_index, const char *t_text);
const char * Array_TextArray_Get(struct sArray_TextArray *ps_array, uint32_t u4_index);
char * Array_TextArray_GetCopy(struct sArray_TextArray *ps_array, uint32_t u4_index);
bool Array_TextArray_Remove(struct sArray_TextArray *ps_array, uint32_t u4_index);
uint32_t Array_TextArray_Texts(struct sArray_TextArray *ps_array);


#endif //ARRAY_H_INCLUDED
