Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Getters and Setters
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

vjedlicka
Junior Member

21 Posts

Posted - Aug 23 2007 :  4:33:35 PM  Show Profile  Reply with Quote
Can getters start with Get and setters with Set?
for example when I have field

int m_age;

I get

int Age() const { return m_age; }
void Age(int val) { m_age = val; }

I would prefer GetAge() and SetAge()

Thank you
Vaclav

rhummer
Tomato Guru

USA
527 Posts

Posted - Aug 23 2007 :  5:07:34 PM  Show Profile  Reply with Quote
You can change how it is generated. There is an Auto Text entry called 'Refactor Encapsulate Field' simply modify that entry to have a Get and Set.

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 24 2007 :  08:55:41 AM  Show Profile  Reply with Quote
See here for some more details on this:

http://www.wholetomato.com/products/features/encapsulateField.asp

zen is the art of being at one with the two'ness
Go to Top of Page

vjedlicka
Junior Member

21 Posts

Posted - Aug 24 2007 :  1:59:12 PM  Show Profile  Reply with Quote
It is ok now, thank you guys!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000