1ec5130b950992fe79400ba66336d19169772a530Adrien M/* 2ec5130b950992fe79400ba66336d19169772a530Adrien M* Copyright (c) 2011-2015, Intel Corporation 3ec5130b950992fe79400ba66336d19169772a530Adrien M* All rights reserved. 4ec5130b950992fe79400ba66336d19169772a530Adrien M* 5ec5130b950992fe79400ba66336d19169772a530Adrien M* Redistribution and use in source and binary forms, with or without modification, 6ec5130b950992fe79400ba66336d19169772a530Adrien M* are permitted provided that the following conditions are met: 7ec5130b950992fe79400ba66336d19169772a530Adrien M* 8ec5130b950992fe79400ba66336d19169772a530Adrien M* 1. Redistributions of source code must retain the above copyright notice, this 9ec5130b950992fe79400ba66336d19169772a530Adrien M* list of conditions and the following disclaimer. 10ec5130b950992fe79400ba66336d19169772a530Adrien M* 11ec5130b950992fe79400ba66336d19169772a530Adrien M* 2. Redistributions in binary form must reproduce the above copyright notice, 12ec5130b950992fe79400ba66336d19169772a530Adrien M* this list of conditions and the following disclaimer in the documentation and/or 13ec5130b950992fe79400ba66336d19169772a530Adrien M* other materials provided with the distribution. 14ec5130b950992fe79400ba66336d19169772a530Adrien M* 15ec5130b950992fe79400ba66336d19169772a530Adrien M* 3. Neither the name of the copyright holder nor the names of its contributors 16ec5130b950992fe79400ba66336d19169772a530Adrien M* may be used to endorse or promote products derived from this software without 17ec5130b950992fe79400ba66336d19169772a530Adrien M* specific prior written permission. 18ec5130b950992fe79400ba66336d19169772a530Adrien M* 19ec5130b950992fe79400ba66336d19169772a530Adrien M* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 20ec5130b950992fe79400ba66336d19169772a530Adrien M* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21ec5130b950992fe79400ba66336d19169772a530Adrien M* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22ec5130b950992fe79400ba66336d19169772a530Adrien M* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 23ec5130b950992fe79400ba66336d19169772a530Adrien M* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24ec5130b950992fe79400ba66336d19169772a530Adrien M* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25ec5130b950992fe79400ba66336d19169772a530Adrien M* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 26ec5130b950992fe79400ba66336d19169772a530Adrien M* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27ec5130b950992fe79400ba66336d19169772a530Adrien M* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28ec5130b950992fe79400ba66336d19169772a530Adrien M* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29ec5130b950992fe79400ba66336d19169772a530Adrien M*/ 30ec5130b950992fe79400ba66336d19169772a530Adrien M#pragma once 31ec5130b950992fe79400ba66336d19169772a530Adrien M 32ec5130b950992fe79400ba66336d19169772a530Adrien M#include "TESTSubsystemObject.h" 33ec5130b950992fe79400ba66336d19169772a530Adrien M 34ec5130b950992fe79400ba66336d19169772a530Adrien Mclass CTESTSubsystemBinary : public CTESTSubsystemObject 35ec5130b950992fe79400ba66336d19169772a530Adrien M{ 36ec5130b950992fe79400ba66336d19169772a530Adrien Mpublic: 37ec5130b950992fe79400ba66336d19169772a530Adrien M CTESTSubsystemBinary(const std::string& strMappingValue, CInstanceConfigurableElement* pInstanceConfigurableElement, const CMappingContext& context); 38ec5130b950992fe79400ba66336d19169772a530Adrien M 39ec5130b950992fe79400ba66336d19169772a530Adrien Mprivate: 40ec5130b950992fe79400ba66336d19169772a530Adrien M // from CTESTSubsystemObject 41ec5130b950992fe79400ba66336d19169772a530Adrien M // Format Data 42ec5130b950992fe79400ba66336d19169772a530Adrien M virtual std::string toString(const void* pvValue, uint32_t uiSize) const; 43ec5130b950992fe79400ba66336d19169772a530Adrien M virtual void fromString(const std::string& strValue, void* pvValue, uint32_t uiSize); 44ec5130b950992fe79400ba66336d19169772a530Adrien M 45ec5130b950992fe79400ba66336d19169772a530Adrien M}; 46