staruml / staruml-cpp

C++ extension for StarUML
MIT License
173 stars 66 forks source link

[Feature Request] Header-Only C++ Implementation #23

Open robdotson opened 7 years ago

robdotson commented 7 years ago

It would also be great if there was the option for header-only implementations for non-template classes/structs, and only generating .cpp files if there are static methods:

// foo.h
class foo {
int six;
public:
static std::string bar();
foo( int one, int two, int three ) { six = one + two + three; }
virtual ~foo(){}
};

// foo.cpp
std::string foo::bar() { return std::to_string("hello!"); }