I'm trying to make generating setters and getters in c++ more convenient. Now, I came up with this:

```
#define getterAndSetter(t, vn, fn) \
    t vn; \
    t get##fn() { \
        return vn; \
    } \
    void set##fn(t val) { \
        vn = val; \
    }

```

So, the problem is that now I have the variable and the getter in the same access (public/private). I could have written public: and private: there, but with that I lose context for the code that goes before and after these. The question is can I get access modifiers for only one member, like in Java?