move default constructor/destructor to header files and remove empty source files
Change-Id: I5ec63a34926c74fab9742cbf299c978a7e76bd1d
Signed-off-by: Minji Park <minjii.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4331
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
######################################################################
# Source files and Targets
######################################################################
-res_container_src = ['src/BaseActivator.cpp','src/BundleActivator.cpp','src/RCSBundleInfo.cpp',
- 'src/BundleInfoInternal.cpp', 'src/BundleResource.cpp', 'src/Configuration.cpp', 'src/JavaBundleResource.cpp', 'src/ProtocolBridgeResource.cpp',
- 'src/ProtocolBridgeConnector.cpp', 'src/RCSResourceContainer.cpp', 'src/ResourceContainerBundleAPI.cpp', 'src/ResourceContainerImpl.cpp',
- 'src/SoftSensorResource.cpp', 'src/DiscoverResourceUnit.cpp', 'src/RemoteResourceUnit.cpp',
- ]
+res_container_src = [ Glob('src/*.cpp') ]
res_container_static = resource_container_env.StaticLibrary('rcs_container', res_container_src)
res_container_shared = resource_container_env.SharedLibrary('rcs_container', res_container_src)
/**
* Constructor for BundleActivator
*/
- BundleActivator();
+ BundleActivator() { };
/**
* Virtual destructor for BundleActivator
*/
- virtual ~BundleActivator();
+ virtual ~BundleActivator() { };
/**
* Activate the Bundle to make bundle work and create bundle resources
* @return void
*/
virtual void activateBundle(ResourceContainerBundleAPI *resourceContainer,
- std::string bundleId);
+ std::string bundleId) { };
/**
* Deactivate the Bundle to stop working and destroy bundle resources
*
* @return void
*/
- virtual void deactivateBundle();
+ virtual void deactivateBundle() { };
/**
* Create Bundle Resource instance and register the resource in the container
/**
* Constructor for ProtocolBridgeConnector
*/
- ProtocolBridgeConnector();
+ ProtocolBridgeConnector() { };
/**
* Virtual destructor for ProtocolBridgeConnector
*/
- virtual ~ProtocolBridgeConnector();
+ virtual ~ProtocolBridgeConnector() { };
/**
* Execute the logic needed for connection with different protocol from IoTivity
/**
* Constructor for ProtocolBridgeResource
*/
- ProtocolBridgeResource();
+ ProtocolBridgeResource() { };
/**
* Virtual destructor for ProtocolBridgeResource
*/
- virtual ~ProtocolBridgeResource();
+ virtual ~ProtocolBridgeResource() { };
/**
* Initialize attributes of the resource
*/
virtual const std::string &getVersion() = 0;
- RCSBundleInfo();
- virtual ~RCSBundleInfo();
+ RCSBundleInfo() { };
+ virtual ~RCSBundleInfo() { };
protected:
std::string m_ID, m_path, m_version;
+++ /dev/null
-//******************************************************************
-//
-// Copyright 2015 Samsung Electronics All Rights Reserved.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-#include "BundleActivator.h"
-#include "RCSResourceContainer.h"
-
-using namespace OIC::Service;
-
-namespace OIC
-{
- namespace Service
- {
- BundleActivator::BundleActivator()
- {
-
- }
-
- BundleActivator::~BundleActivator()
- {
-
- }
-
- void BundleActivator::activateBundle(ResourceContainerBundleAPI *resourceContainer,
- std::string bundleId)
- {
- (void)(resourceContainer);
- (void)(bundleId);
- }
-
- void BundleActivator::deactivateBundle()
- {
-
- }
- }
-}
-
+++ /dev/null
-//******************************************************************
-//
-// Copyright 2015 Samsung Electronics All Rights Reserved.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-#include "ProtocolBridgeConnector.h"
-
-using namespace OIC::Service;
-
-namespace OIC
-{
- namespace Service
- {
- ProtocolBridgeConnector::ProtocolBridgeConnector()
- {
-
- }
-
- ProtocolBridgeConnector::~ProtocolBridgeConnector()
- {
-
- }
- }
-}
-
+++ /dev/null
-//******************************************************************
-//
-// Copyright 2015 Samsung Electronics All Rights Reserved.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-#include "ProtocolBridgeResource.h"
-
-using namespace OIC::Service;
-
-namespace OIC
-{
- namespace Service
- {
- ProtocolBridgeResource::ProtocolBridgeResource()
- {
-
- }
-
- ProtocolBridgeResource::~ProtocolBridgeResource()
- {
-
- }
- }
-}
-
-
+++ /dev/null
-//******************************************************************
-//
-// Copyright 2015 Samsung Electronics All Rights Reserved.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-#include "RCSBundleInfo.h"
-#include "BundleInfoInternal.h"
-
-namespace OIC
-{
- namespace Service
- {
- RCSBundleInfo::RCSBundleInfo()
- {
-
- }
-
- RCSBundleInfo::~RCSBundleInfo()
- {
-
- }
- }
-}