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
 Makefile
34
 Makefile
35
 cmake_install.cmake
35
 cmake_install.cmake
36
 install_manifest.txt
36
 install_manifest.txt
37
+/build

+ 1
- 1
CMakeLists.txt View File

4
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread -I/usr/include/PCSC")
4
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread -I/usr/include/PCSC")
5
 
5
 
6
 set(SOURCE_FILES DBO/ScCommand.cpp DBO/ScCommand.h DBO/ScByteArray.cpp DBO/ScByteArray.h)
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

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
 class ScByteArray {
10
 class ScByteArray {
11
 
11
 
12
 public:
12
 public:
13
+    inline ScByteArray();
14
+
13
     inline ScByteArray(BYTE* const data, const DWORD size);
15
     inline ScByteArray(BYTE* const data, const DWORD size);
14
 
16
 
15
     inline ScByteArray(const ScByteArray& data);
17
     inline ScByteArray(const ScByteArray& data);

+ 6
- 0
DBO/ScByteArray.hxx View File

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

Loading…
Cancel
Save