Skip to content

Commit

Permalink
[#3] Updated RawJPEG class
Browse files Browse the repository at this point in the history
  • Loading branch information
Clovel committed Jun 10, 2019
1 parent 45a7269 commit e9b22e9
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 61 deletions.
52 changes: 52 additions & 0 deletions src/RawJPEG.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/**
* RawJPEG
*/

/* Include --------------------------------------------- */
#include "RawJPEG.hpp"

#include <iostream>

/* Defines --------------------------------------------- */

/* Class implentation ---------------------------------- */
std::ostream &operator<<(std::ostream &pOs, const RawJPEG &pRawJPEG) {
pOs << "RawJPEG data : " << pRawJPEG.rawData();

return pOs;
}

RawJPEG::RawJPEG() {
/* Empty on purpose */
}

RawJPEG::RawJPEG(const std::string &pStr) : mRawData(pStr)
{
/* Empty on purpose */
}

RawJPEG::~RawJPEG() {
/* Empty on purpose */
}

void RawJPEG::print(void) const {
std::cout << "[INFO ] RawJPEG value is : " << *this << std::endl;
}

/* Getters */
std::string RawJPEG::rawData(void) const {
return mRawData;
}

bool RawJPEG::isComplete(void) const {
return mComplete;
}

/* Setters */
void RawJPEG::setRawData(const std::string &pStr) {
mRawData = pStr;
}

void RawJPEG::setCompleted(const bool &pComplete) {
mComplete = pComplete;
}
18 changes: 9 additions & 9 deletions src/RawJPG.hpp → src/RawJPEG.hpp
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
/**
* RawJPG
* RawJPEG
*/

#ifndef RAW_JPG_HPP
#define RAW_JPG_HPP
#ifndef RAW_JPEG_HPP
#define RAW_JPEG_HPP

/* Include --------------------------------------------- */
#include <string>

/* Defines --------------------------------------------- */

/* Class ----------------------------------------------- */
class RawJPG {
class RawJPEG {
public:
RawJPG();
RawJPG(const std::string &pStr);
virtual ~RawJPG();
RawJPEG();
RawJPEG(const std::string &pStr);
virtual ~RawJPEG();

void print(void) const;

Expand All @@ -32,6 +32,6 @@ class RawJPG {
bool mComplete;
};

std::ostream &operator<<(std::ostream &pOs, const RawJPG &pRawJPG);
std::ostream &operator<<(std::ostream &pOs, const RawJPEG &pRawJPEG);

#endif /* RAW_JPG_HPP */
#endif /* RAW_JPEG_HPP */
52 changes: 0 additions & 52 deletions src/RawJPG.cpp

This file was deleted.

0 comments on commit e9b22e9

Please sign in to comment.