Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

OMF::SetByVal< Self, Type > Struct Template Reference

#include <Property.hpp>

Inheritance diagram for OMF::SetByVal< Self, Type >:

OMF::SetMethod List of all members.

Detailed Description

template<class Self, class Type>
struct OMF::SetByVal< Self, Type >

This class describes a structure that implements wrappers around setter methods that pass values by value (const refs, actually). We do something a little odd in the set method here because this is typically most often applied to primitives. If the direct type cast fails, we employ a backup strategy: attempting to coerce the type of the object to a primitive and push the string value into the expectant data type.


Public Types

typedef void(Self::* Function )(const Type &)

Public Member Functions

 SetByVal (Self *self, Function method)
virtual void set (Object *value)

Public Attributes

Self * _self
Function _method


Member Typedef Documentation

template<class Self, class Type>
typedef void(Self::* OMF::SetByVal< Self, Type >::Function)(const Type &)
 


Constructor & Destructor Documentation

template<class Self, class Type>
OMF::SetByVal< Self, Type >::SetByVal Self *  self,
Function  method
 


Member Function Documentation

template<class Self, class Type>
virtual void OMF::SetByVal< Self, Type >::set Object value  )  [virtual]
 

Implements OMF::SetMethod.


Member Data Documentation

template<class Self, class Type>
Function OMF::SetByVal< Self, Type >::_method
 

template<class Self, class Type>
Self* OMF::SetByVal< Self, Type >::_self
 


The documentation for this struct was generated from the following file:
Generated on Fri Sep 10 13:07:38 2004 for OpenModelingFramework by doxygen 1.3.8