Cixo Develop пре 6 дана
родитељ
комит
50f55ce37f
5 измењених фајлова са 67 додато и 0 уклоњено
  1. 14 0
      make.sh
  2. 16 0
      source/header.cpp
  3. 22 0
      source/header.hpp
  4. 15 0
      source/request.hpp
  5. 0 0
      source/server.h

+ 14 - 0
make.sh

@@ -0,0 +1,14 @@
+source_dir="source/"
+headers="$source_dir/*.hpp"
+sources="$source_dir/*.cpp"
+
+headers_output_root="headers"
+headers_output="$headers_output_root/cx-cpp-http/"
+
+# Prepare headers
+rm -rf $headers_output
+rm -rf $headers_output_root
+
+mkdir $headers_output_root
+mkdir $headers_output
+cp $headers $headers_output/

+ 16 - 0
source/header.cpp

@@ -0,0 +1,16 @@
+#include <string>
+
+#include "header.hpp"
+
+cx_cpp_http::header::header(std::string title, std::string content) {
+    this->title = title;
+    this->content = content;
+}
+
+std::string cx_cpp_http::header::get_title() {
+    return this->title;
+}   
+
+std::string cx_cpp_http::header::get_content() {
+    return this->content;
+}   

+ 22 - 0
source/header.hpp

@@ -0,0 +1,22 @@
+#ifndef CX_CPP_HTTP_HEADER_HPP_INCLUDED
+#define CX_CPP_HTTP_HEADER_HPP_INCLUDED
+
+#include <string>
+
+namespace cx_cpp_http {
+    class header {
+        public:
+    
+        header(std::string, std::string);
+   
+        std::string get_title();
+        std::string get_content();
+
+        private:
+        
+        std::string title;
+        std::string content;
+    };
+}   
+
+#endif

+ 15 - 0
source/request.hpp

@@ -0,0 +1,15 @@
+#ifndef CX_CPP_HTTP_REQUEST_HPP_INCLUDED
+#define CX_CPP_HTTP_REQUEST_HPP_INCLUDED
+
+namespace cx_cpp_http {
+
+    class request {
+        public:
+
+        private:
+            
+    }   
+
+}
+
+#endif

+ 0 - 0
source/server.h