Browse Source

cmake; basic command; gitignore; basic command

master
Robin Thoni 9 years ago
parent
commit
8834e2edb0
5 changed files with 29 additions and 1 deletions
  1. 1
    0
      .gitignore
  2. 1
    1
      CMakeLists.txt
  3. 19
    0
      DBO/ScBasicCommand.cpp
  4. 2
    0
      DBO/ScByteArray.h
  5. 6
    0
      DBO/ScByteArray.hxx

+ 1
- 0
.gitignore View File

@@ -34,3 +34,4 @@ CMakeFiles
34 34
 Makefile
35 35
 cmake_install.cmake
36 36
 install_manifest.txt
37
+/build

+ 1
- 1
CMakeLists.txt View File

@@ -4,4 +4,4 @@ project(libpcsc_cpptools)
4 4
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread -I/usr/include/PCSC")
5 5
 
6 6
 set(SOURCE_FILES DBO/ScCommand.cpp DBO/ScCommand.h DBO/ScByteArray.cpp DBO/ScByteArray.h)
7
-add_library(libpcsc_cpptools SHARED ${SOURCE_FILES} DBO/ScByteArray.hxx DBO/ScCommand.hxx)
7
+add_library(libpcsc_cpptools SHARED ${SOURCE_FILES} DBO/ScByteArray.hxx DBO/ScCommand.hxx DBO/ScBasicCommand.cpp DBO/ScBasicCommand.h DBO/ScBasicCommand.hxx)

+ 19
- 0
DBO/ScBasicCommand.cpp View File

@@ -0,0 +1,19 @@
1
+//
2
+// Created by robin on 6/27/15.
3
+//
4
+
5
+#include "ScBasicCommand.h"
6
+
7
+ScBasicCommand::ScBasicCommand(const std::string &data)
8
+{
9
+    for (auto c : data)
10
+    {
11
+
12
+    }
13
+}
14
+
15
+ScByteArray ScBasicCommand::getData() const
16
+{
17
+    return _data;
18
+}
19
+

+ 2
- 0
DBO/ScByteArray.h View File

@@ -10,6 +10,8 @@
10 10
 class ScByteArray {
11 11
 
12 12
 public:
13
+    inline ScByteArray();
14
+
13 15
     inline ScByteArray(BYTE* const data, const DWORD size);
14 16
 
15 17
     inline ScByteArray(const ScByteArray& data);

+ 6
- 0
DBO/ScByteArray.hxx View File

@@ -5,6 +5,12 @@
5 5
 #include <stdlib.h>
6 6
 #include <string.h>
7 7
 
8
+ScByteArray::ScByteArray()
9
+    : _size(0)
10
+    , _data(nullptr)
11
+{
12
+}
13
+
8 14
 ScByteArray::ScByteArray(BYTE * const data, const DWORD size)
9 15
         : _data(data)
10 16
         , _size(size)

Loading…
Cancel
Save