Code:
TConstPropertyInt32Ptr theProperty = boost::shared_static_cast<const CPropertyInt32>(propertyPtr);
TConstPropertyValueInt32Ptr theValue = boost::shared_static_cast<const CPropertyValueInt32>(valuePtr);
int cppValue = (theValue) ? theValue->getValue() : theProperty->getDefaultValue();
dstream << "\tstatic int " << exportVariableName << "(" << cppValue << ");";
rstream << "\tstatic const int " << exportVariableName << "(" << cppValue << ");";
Code tags added by me to make it somewhat legible.
The little boat gently drifted across the pond exactly the way a bowling ball wouldn't.