-
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.
Actualización nuevos métodos de ocultamiento de errores
- Loading branch information
Christopher Arredondo
authored and
Christopher Arredondo
committed
Oct 11, 2016
1 parent
935f7e5
commit 8e3a566
Showing
2,123 changed files
with
2,264 additions
and
150,909 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/rrss/* | ||
/files/* | ||
/images/* |
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.
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,91 @@ | ||
/** | ||
@file DataTibsStream.h | ||
@class DataTibsStream | ||
@brief Clase que representa un Stream de Información JPG | ||
@author Christopher Arredondo Flores | ||
@date 28/9/2014 | ||
**/ | ||
#ifndef CLASS_DATAAHCRSTREAM | ||
#define CLASS_DATAAHCRSTREAM | ||
|
||
#include <iostream> | ||
#include "DataType.h" | ||
|
||
using namespace std; | ||
|
||
class DataAhcrStream: public DataType{ | ||
|
||
vector<double> element; //!<@brief Elemento que Compone al Byte | ||
vector<int> positions; | ||
|
||
public: | ||
|
||
DataAhcrStream(vector<double> nElement, vector<int> nPositions){ | ||
/** | ||
* @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 | ||
* | ||
*/ | ||
element = nElement; | ||
positions = nPositions; | ||
this->setValid(true); | ||
} | ||
|
||
|
||
DataAhcrStream(){ | ||
/** | ||
* @brief Constructor de la Clase DataBlock | ||
*/ | ||
this->setValid(false); | ||
} | ||
|
||
~DataAhcrStream(){ | ||
} | ||
|
||
double getSize(){ | ||
/* | ||
* @brief Método que devuelve el tamaño del Elemento | ||
* @return result | ||
*/ | ||
double size = element.size(); | ||
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; | ||
} | ||
|
||
vector<double> getBlock(){ | ||
return element; | ||
} | ||
|
||
vector<int> getPositions(){ | ||
return positions; | ||
} | ||
|
||
|
||
}; | ||
|
||
#endif |
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.
Oops, something went wrong.