Skip to content

Commit

Permalink
add ElementChecker library
Browse files Browse the repository at this point in the history
issue #33
  • Loading branch information
Valentin Noel committed Oct 22, 2013
1 parent 114be2a commit fb389b0
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ SConscript(
'libraries/Common',
'libraries/SpecReader',
'libraries/BasicElement',
'libraries/ElementChecker',
'libraries/FileReader',
'libraries/ReportGenerator',
'libraries/Comparator',
Expand Down
14 changes: 14 additions & 0 deletions libraries/ElementChecker/SConscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Import( 'project', 'libs' )

project.StaticLibrary(
'elementChecker',
dirs = ['src'],
includes = ['src'],
libraries = [
libs.common,
libs.basicElement,
],
shared = True
)


18 changes: 18 additions & 0 deletions libraries/ElementChecker/src/ElementChecker/Checker/Checker.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

#include "Checker.hpp"

namespace element_checker
{

Checker::Checker( const std::shared_ptr< basic_element::Element > element )
: _element( element )
{
}

void Checker::check()
{
std::cout << _element->getType() << std::cout;
}

}

27 changes: 27 additions & 0 deletions libraries/ElementChecker/src/ElementChecker/Checker/Checker.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#ifndef _ELEMENT_CHECKER_CHECKER_HPP_
#define _ELEMENT_CHECKER_CHECKER_HPP_

#include <Common/common.hpp>
#include <Common/Element.hpp>

#include <iostream>
#include <memory>

namespace element_checker
{

class Checker
{

public:
Checker( const std::shared_ptr< basic_element::Element > element );

void check();

private:
std::shared_ptr< basic_element::Element > _element;
};

}

#endif

0 comments on commit fb389b0

Please sign in to comment.