FETPAPI 0.3.0.0
This project provides C++ classes which facilitate the developement of ETP1.2 clients and servers.
Loading...
Searching...
No Matches
FesapiHelpers.h
1/*-----------------------------------------------------------------------
2Licensed to the Apache Software Foundation (ASF) under one
3or more contributor license agreements. See the NOTICE file
4distributed with this work for additional information
5regarding copyright ownership. The ASF licenses this file
6to you under the Apache License, Version 2.0 (the
7"License"; you may not use this file except in compliance
8with the License. You may obtain a copy of the License at
9
10http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing,
13software distributed under the License is distributed on an
14"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15KIND, either express or implied. See the License for the
16specific language governing permissions and limitations
17under the License.
18-----------------------------------------------------------------------*/
19#pragma once
20
21#include <fesapi/common/AbstractObject.h>
22
23#include "../../nsDefinitions.h"
24#include "../EtpMessages.h"
25
26#if defined(_WIN32) && !defined(FETPAPI_STATIC)
27 #ifndef FETPAPI_DLL_IMPORT_OR_EXPORT
28 #if defined(Fetpapi_EXPORTS)
29 #define FETPAPI_DLL_IMPORT_OR_EXPORT __declspec(dllexport)
30 #else
31 #define FETPAPI_DLL_IMPORT_OR_EXPORT __declspec(dllimport)
32 #endif
33 #endif
34#else
35 #define FETPAPI_DLL_IMPORT_OR_EXPORT
36#endif
37
38namespace ETP_NS
39{
40 namespace FesapiHelpers {
47 FETPAPI_DLL_IMPORT_OR_EXPORT Energistics::Etp::v12::Datatypes::Object::Resource buildEtpResourceFromEnergisticsObject(COMMON_NS::AbstractObject const* obj, bool countRels = true);
48
54 FETPAPI_DLL_IMPORT_OR_EXPORT Energistics::Etp::v12::Datatypes::Object::DataObject buildEtpDataObjectFromEnergisticsObject(COMMON_NS::AbstractObject * obj, bool includeSerialization = true);
55 }
56}