Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
m2mtlvdeserializer_stub.cpp
00001 /* 00002 * Copyright (c) 2015 ARM Limited. All rights reserved. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * Licensed under the Apache License, Version 2.0 (the License); you may 00005 * not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #include "m2mtlvdeserializer_stub.h" 00017 00018 bool m2mtlvdeserializer_stub::bool_value; 00019 bool m2mtlvdeserializer_stub::is_object_bool_value; 00020 M2MTLVDeserializer::Error m2mtlvdeserializer_stub::error; 00021 uint16_t m2mtlvdeserializer_stub::int_value; 00022 00023 void m2mtlvdeserializer_stub::clear() 00024 { 00025 bool_value = false; 00026 is_object_bool_value = false; 00027 error = M2MTLVDeserializer::None; 00028 int_value = 0; 00029 } 00030 00031 M2MTLVDeserializer::M2MTLVDeserializer() 00032 { 00033 } 00034 00035 M2MTLVDeserializer::~M2MTLVDeserializer() 00036 { 00037 } 00038 00039 bool M2MTLVDeserializer::is_object_instance(uint8_t *) 00040 { 00041 return m2mtlvdeserializer_stub::is_object_bool_value; 00042 } 00043 00044 bool M2MTLVDeserializer::is_resource(uint8_t *) 00045 { 00046 return m2mtlvdeserializer_stub::bool_value; 00047 } 00048 00049 bool M2MTLVDeserializer::is_multiple_resource(uint8_t *) 00050 { 00051 return m2mtlvdeserializer_stub::bool_value; 00052 } 00053 00054 bool M2MTLVDeserializer::is_resource_instance(uint8_t *) 00055 { 00056 return m2mtlvdeserializer_stub::bool_value; 00057 } 00058 00059 M2MTLVDeserializer::Error M2MTLVDeserializer::deserialize_resources(uint8_t*, 00060 uint32_t, 00061 M2MObjectInstance &, 00062 M2MTLVDeserializer::Operation ) 00063 { 00064 return m2mtlvdeserializer_stub::error; 00065 } 00066 00067 M2MTLVDeserializer::Error M2MTLVDeserializer::deserialize_resource_instances(uint8_t *, 00068 uint32_t, 00069 M2MResource &, 00070 M2MTLVDeserializer::Operation ) 00071 { 00072 return m2mtlvdeserializer_stub::error; 00073 } 00074 00075 M2MTLVDeserializer::Error M2MTLVDeserializer::deserialise_object_instances(uint8_t*, 00076 uint32_t , 00077 M2MObject &, 00078 M2MTLVDeserializer::Operation) 00079 { 00080 return m2mtlvdeserializer_stub::error; 00081 } 00082 00083 TypeIdLength* TypeIdLength::createTypeIdLength(uint8_t *, uint32_t) 00084 { 00085 TypeIdLength *til = new TypeIdLength(); 00086 return til; 00087 } 00088 00089 TypeIdLength* TypeIdLength::deserialize() 00090 { 00091 return this; 00092 } 00093 00094 void TypeIdLength::deserialiseID(uint32_t idLength) 00095 { 00096 } 00097 00098 void TypeIdLength::deserialiseLength(uint32_t lengthType) 00099 { 00100 } 00101 00102 uint16_t M2MTLVDeserializer::instance_id(uint8_t *tlv) 00103 { 00104 return m2mtlvdeserializer_stub::int_value; 00105 }
Generated on Tue Jul 12 2022 21:20:28 by
1.7.2