Novo

Dependencies:   mbed

Fork of LukaIElmir by tim003 tim003

Znak.h

Committer:
tim003
Date:
2014-05-26
Revision:
4:ba24ce878e87
Parent:
3:43648fa57d55
Child:
5:654e3398c1ef

File content as of revision 4:ba24ce878e87:

#include "mbed.h"
#ifndef ZNAK_H
#define ZNAK_H
#include <vector>

class Znak
{
    public:
        std::vector<int> registri;
    Znak(int r0 = -1, int r1 = -1, int r2 = -1, int r3 = -1, int r4 = -1, int r5 = -1)
    {
            if(r0 != -1) registri.push_back(r0);
            if(r1 != -1) registri.push_back(r1);
            if(r2 != -1) registri.push_back(r2);
            if(r3 != -1) registri.push_back(r3);
            if(r4 != -1) registri.push_back(r4);
            if(r5 != -1) registri.push_back(r5);
    }
    Znak(int *niz, int vel)
    {
        for(int i = 0; i < vel; i++) registri.push_back(niz[i]);
    }
    ~Znak() {}

};

#endif // ZNAK_H