I’m trying VP UML 7.2. How I can change C++ code generation settings? Default generated C++ code is:
#include <string>
#include <vector>
#include <exception>
using namespace std;
#ifndef __host__host_cache_t_h__
#define __host__host_cache_t_h__
#include "crypto/key/key_t.h"
namespace crypto
{
namespace key
{
class key_t;
}
}
namespace host
{
class host_cache_t;
}
namespace host
{
class host_cache_t
{
public: static bool is_available_for(const crypto::key::key_t& k) {
throw "Not yet implemented";
}
public: void operation();
};
}
#endif
How I can to do followings:
First, I don’t need for class forward references (key_t and host_cache_t).
Second, I need to define static(classifier) method body into definition file.
Third, I need using usual C++ class declaration style (not like above), like this:
class classname
{
public:
pub_foo();
pub_foo2();
...
pub_fooN();
protected:
prot_foo();
prot_foo2();
...
prot_fooN();
private:
priv_foo();
priv_foo2();
...
priv_fooN();
public:
pub_att _att1;
pub_att _att2;
...
pub_att _attN;
protected:
prot_att _att1;
prot_att _att2;
...
prot_att _attN;
private:
priv_att _att1;
priv_att _att2;
...
priv_att _attN;
};
Thank you.