Przeglądaj źródła

cmake; basic command; gitignore; basic command

master
Robin Thoni 9 lat temu
rodzic
commit
8834e2edb0
5 zmienionych plików z 29 dodań i 1 usunięć
  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 Wyświetl plik

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

+ 1
- 1
CMakeLists.txt Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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)

Ładowanie…
Anuluj
Zapisz