-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31c3d23
commit f9d3491
Showing
62 changed files
with
1,748 additions
and
262,330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
all: | ||
g++ -o simlit main.cpp -O2 -lm -lpthread -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -Wall -std=c++11 | ||
g++ -o simlit main.cpp -O2 -lm -lpthread -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -Wall -std=c++11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/** | ||
@file DataByte.h | ||
@class DataByte | ||
@brief Clase que representa un Byte de Información | ||
@author Christopher Arredondo Flores | ||
@date 28/9/2014 | ||
**/ | ||
#ifndef CLASS_DATABYTESTREAM | ||
#define CLASS_DATABYTESTREAM | ||
|
||
#include <iostream> | ||
#include "DataType.h" | ||
|
||
using namespace std; | ||
|
||
class DataByteStream: public DataType{ | ||
|
||
unsigned char* element; //!<@brief Elemento que Compone al Byte | ||
int bytes; | ||
|
||
public: | ||
|
||
DataByteStream(unsigned char* nElement, int nBytes){ | ||
/** | ||
* @brief Constructor de la Clase DataBlock | ||
* @param nBlock Píxeles que contiene un DataBlock | ||
* @param w Ancho del Bloque | ||
* @param h Alto del Bloque | ||
* @param nAmount Cantidad de Canales que tendrá el bloque | ||
* | ||
*/ | ||
bytes = nBytes; | ||
element = nElement; | ||
this->setValid(true); | ||
} | ||
|
||
|
||
DataByteStream(){ | ||
/** | ||
* @brief Constructor de la Clase DataBlock | ||
*/ | ||
element = NULL; | ||
bytes = 0; | ||
this->setValid(false); | ||
} | ||
|
||
~DataByteStream(){ | ||
} | ||
|
||
double getSize(){ | ||
/* | ||
* @brief Método que devuelve el tamaño del Elemento | ||
* @return result | ||
*/ | ||
double size = (double)bytes+0.0; | ||
return size; | ||
} | ||
|
||
int* getContent(){ | ||
/** | ||
* @brief Función que devuelve en un arreglo de enteros todo el contenido de DataBlock | ||
* return array | ||
*/ | ||
int* array = (int*)malloc(sizeof(int)); | ||
if(this->isValid()){ | ||
array[0]=0; | ||
} | ||
else{ | ||
array[0]=1; | ||
} | ||
return array; | ||
} | ||
|
||
void* getExtras(){ | ||
/** | ||
* @brief Método que Obtiene el Dato del Byte | ||
*/ | ||
return (void*)element; | ||
} | ||
|
||
}; | ||
|
||
#endif |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.