Commit f61b382a authored by Evgenii Sopov's avatar Evgenii Sopov

Prepare wsjcpp package example

parent 9aaa7805
# Example wsjcpp package gitlab
## Integrate to your project
```
$ wsjcpp install https://gitlab.com/wsjcpp/example-wsjcpp-package-gitlab:master
```
#include "example.h"
// ---------------------------------------------------------------------
// Example
Example::Example() {
// nothing
}
// ---------------------------------------------------------------------
void Example::setValue(const std::string &sValue) {
m_sValue = sValue;
}
// ---------------------------------------------------------------------
std::string Example::getValue() {
return m_sValue;
}
\ No newline at end of file
#ifndef EXAMPLE_H
#define EXAMPLE_H
#include <string>
class Example {
public:
Example();
void setValue(const std::string &sValue);
std::string getValue();
private:
std::string m_sValue;
};
#endif // EXAMPLE_H
name: "example-wsjcpp-package-gitlab"
version: "v0.0.1"
cmake_minimum_required: "3.0"
cmake_cxx_standard: "11"
description: "Example wsjcpp package gitlab"
authors:
- name: "Evgenii Sopov"
email: "[email protected]"
keywords:
- "c++"
distribution:
- source-file: "src/example.cpp"
target-file: "example.cpp"
type: "source-code"
- source-file: "src/example.h"
target-file: "example.h"
type: "source-code"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment