A base class to quickly add read and write members to a class.