| 83 | |
| 84 | ==== FdoParameterDirection Enumeration ==== |
| 85 | |
| 86 | A new enumeration, !FdoParameterDirection, will be added to the FDO API for use within FDO Commands that utilize parameters. !FdoParameterDirection defines the direction in which the command will utilize the parameter upon execution. Parameter direction values are typically Input, Output, InputOutput and Return, with the default value is typically Input. |
| 87 | |
| 88 | {{{ |
| 89 | /// \brief |
| 90 | /// The FdoParameterDirection enumeration defines the direction in which a |
| 91 | /// Parameter value will be used within the context of an FDO Command. Parameter |
| 92 | /// Direction values are typically Input, Output, InputOutput and Return. |
| 93 | /// The default value is typically Input. |
| 94 | enum FdoParameterDirection |
| 95 | { |
| 96 | FdoParameterDirection_Input, |
| 97 | FdoParameterDirection_Ouput, |
| 98 | FdoParameterDirection_InputOutput, |
| 99 | FdoParameterDirection_Return |
| 100 | }; |
| 101 | }}} |
| 102 | |
| 103 | ==== Parameter Value Interface ==== |
| 104 | |
| 105 | The !FdoParameterValue class will be updated to add an additional property Direction, which will indicate the direction in which the parameter will be used within the context of command using the parameters within the context of their execution. |
| 106 | |
| 107 | /// \brief |
| 108 | /// The FdoParameterValue class specifies a value for a particular parameter. |
| 109 | /// Instances of this class are used to specify a value to bind to a parameter |
| 110 | /// when a command is executed. |
| 111 | class FdoParameterValue : public FdoIDisposable |
| 112 | { |
| 113 | public: |
| 114 | ... |
| 115 | ... |
| 116 | ... |
| 117 | /// \brief |
| 118 | /// Sets the function direction of the parameter value. |
| 119 | /// Values can be Input, Output, InputOutput and Return. |
| 120 | /// |
| 121 | /// \param value |
| 122 | /// Input the direction enumeration value |
| 123 | /// |
| 124 | /// \return |
| 125 | /// Returns nothing |
| 126 | /// |
| 127 | FDO_API void SetDirection(FdoParameterDirection value); |
| 128 | |
| 129 | /// \brief |
| 130 | /// Gets the function direction of the the command parameter. |
| 131 | /// Values can be Input, Output, InputOutput and Return. |
| 132 | /// |
| 133 | /// \return |
| 134 | /// Returns the direction enumeration value |
| 135 | /// |
| 136 | FDO_API FdoParameterDirection GetDirection(); |
| 137 | }; |