00001 /* 00002 * ValueManipulator.hpp 00003 * 00004 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. 00005 * 00006 * Oracle is a registered trademarks of Oracle Corporation and/or its 00007 * affiliates. 00008 * 00009 * This software is the confidential and proprietary information of Oracle 00010 * Corporation. You shall not disclose such confidential and proprietary 00011 * information and shall use it only in accordance with the terms of the 00012 * license agreement you entered into with Oracle. 00013 * 00014 * This notice may not be removed or altered. 00015 */ 00016 #ifndef COH_VALUE_MANIPULATOR_HPP 00017 #define COH_VALUE_MANIPULATOR_HPP 00018 00019 #include "coherence/lang.ns" 00020 00021 #include "coherence/util/ValueExtractor.hpp" 00022 #include "coherence/util/ValueUpdater.hpp" 00023 00024 COH_OPEN_NAMESPACE2(coherence,util) 00025 00026 00027 /** 00028 * ValueManipulator represents a composition of ValueExtractor and 00029 * ValueManipulator implementations. 00030 * 00031 * @author tb 2008.05.06 00032 */ 00033 class COH_EXPORT ValueManipulator 00034 : public interface_spec<ValueManipulator> 00035 { 00036 // ----- ValueManipulator interface ------------------------------------- 00037 00038 public: 00039 /** 00040 * Retrieve the underlying ValueExtractor reference. 00041 * 00042 * @return the ValueExtractor 00043 */ 00044 virtual ValueExtractor::View getExtractor() const = 0; 00045 00046 /** 00047 * Retrieve the underlying ValueUpdater reference. 00048 * 00049 * @return the ValueUpdater 00050 */ 00051 virtual ValueUpdater::View getUpdater() const = 0; 00052 }; 00053 00054 COH_CLOSE_NAMESPACE2 00055 00056 #endif // COH_VALUE_MANIPULATOR_HPP