Commit a02dea5c authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Replace boost::string_ref with std::string_view (!859)

Closes #64
parents 433b6164 a2996e7a
Pipeline #789060 passed with stages
in 33 minutes and 27 seconds
......@@ -132,19 +132,19 @@ public:
const std::string& rootName() const override { return m_rootName; }
/// IDataManagerSvc: Register object address with the data store.
StatusCode registerAddress( boost::string_ref path, ADDRESS* pAddr ) override {
StatusCode registerAddress( std::string_view path, ADDRESS* pAddr ) override {
return fwd( [&]( IDataManagerSvc& svc ) { return svc.registerAddress( path, pAddr ); } );
}
/// IDataManagerSvc: Register object address with the data store.
StatusCode registerAddress( IRegistry* parent, boost::string_ref path, ADDRESS* pAddr ) override {
StatusCode registerAddress( IRegistry* parent, std::string_view path, ADDRESS* pAddr ) override {
return fwd( [&]( IDataManagerSvc& svc ) { return svc.registerAddress( parent, path, pAddr ); } );
}
/// IDataManagerSvc: Unregister object address from the data store.
StatusCode unregisterAddress( boost::string_ref path ) override {
StatusCode unregisterAddress( std::string_view path ) override {
return fwd( [&]( IDataManagerSvc& svc ) { return svc.unregisterAddress( path ); } );
}
/// IDataManagerSvc: Unregister object address from the data store.
StatusCode unregisterAddress( IRegistry* pParent, boost::string_ref path ) override {
StatusCode unregisterAddress( IRegistry* pParent, std::string_view path ) override {
return fwd( [&]( IDataManagerSvc& svc ) { return svc.unregisterAddress( pParent, path ); } );
}
/// Explore the object store: retrieve all leaves attached to the object
......@@ -164,7 +164,7 @@ public:
return fwd( [&]( IDataManagerSvc& svc ) { return svc.objectParent( pObject, refpParent ); } );
}
/// Remove all data objects below the sub tree identified
StatusCode clearSubTree( boost::string_ref path ) override {
StatusCode clearSubTree( std::string_view path ) override {
return fwd( [&]( IDataManagerSvc& svc ) { return svc.clearSubTree( path ); } );
}
/// Remove all data objects below the sub tree identified
......@@ -184,7 +184,7 @@ public:
return StatusCode::SUCCESS;
}
/// Analyze by traversing all data objects below the sub tree
StatusCode traverseSubTree( boost::string_ref path, AGENT* pAgent ) override {
StatusCode traverseSubTree( std::string_view path, AGENT* pAgent ) override {
return fwd( [&]( IDataManagerSvc& svc ) { return svc.traverseSubTree( path, pAgent ); } );
}
/// IDataManagerSvc: Analyze by traversing all data objects below the sub tree
......@@ -248,15 +248,15 @@ public:
return fwd( [&]( IDataProviderSvc& svc ) { return svc.preLoad(); } );
}
/// Register object with the data store.
StatusCode registerObject( boost::string_ref parent, boost::string_ref obj, OBJECT* pObj ) override {
StatusCode registerObject( std::string_view parent, std::string_view obj, OBJECT* pObj ) override {
return fwd( [&]( IDataProviderSvc& svc ) { return svc.registerObject( parent, obj, pObj ); } );
}
/// Register object with the data store.
StatusCode registerObject( OBJECT* parent, boost::string_ref obj, OBJECT* pObj ) override {
StatusCode registerObject( OBJECT* parent, std::string_view obj, OBJECT* pObj ) override {
return fwd( [&]( IDataProviderSvc& svc ) { return svc.registerObject( parent, obj, pObj ); } );
}
/// Unregister object from the data store.
StatusCode unregisterObject( boost::string_ref path ) override {
StatusCode unregisterObject( std::string_view path ) override {
return fwd( [&]( IDataProviderSvc& svc ) { return svc.unregisterObject( path ); } );
}
/// Unregister object from the data store.
......@@ -264,39 +264,39 @@ public:
return fwd( [&]( IDataProviderSvc& svc ) { return svc.unregisterObject( pObj ); } );
}
/// Unregister object from the data store.
StatusCode unregisterObject( OBJECT* pObj, boost::string_ref path ) override {
StatusCode unregisterObject( OBJECT* pObj, std::string_view path ) override {
return fwd( [&]( IDataProviderSvc& svc ) { return svc.unregisterObject( pObj, path ); } );
}
/// Retrieve object from data store.
StatusCode retrieveObject( IRegistry* parent, boost::string_ref path, OBJECT*& pObj ) override {
StatusCode retrieveObject( IRegistry* parent, std::string_view path, OBJECT*& pObj ) override {
return fwd( [&]( IDataProviderSvc& svc ) { return svc.retrieveObject( parent, path, pObj ); } );
}
/// Find object identified by its full path in the data store.
StatusCode findObject( boost::string_ref path, OBJECT*& pObj ) override {
StatusCode findObject( std::string_view path, OBJECT*& pObj ) override {
return fwd( [&]( IDataProviderSvc& svc ) { return svc.retrieveObject( path, pObj ); } );
}
/// Find object identified by its full path in the data store.
StatusCode findObject( IRegistry* parent, boost::string_ref path, OBJECT*& pObj ) override {
StatusCode findObject( IRegistry* parent, std::string_view path, OBJECT*& pObj ) override {
return fwd( [&]( IDataProviderSvc& svc ) { return svc.findObject( parent, path, pObj ); } );
}
/// Add a link to another object.
StatusCode linkObject( IRegistry* from, boost::string_ref objPath, OBJECT* to ) override {
StatusCode linkObject( IRegistry* from, std::string_view objPath, OBJECT* to ) override {
return fwd( [&]( IDataProviderSvc& svc ) { return svc.linkObject( from, objPath, to ); } );
}
/// Add a link to another object.
StatusCode linkObject( boost::string_ref fullPath, OBJECT* to ) override {
StatusCode linkObject( std::string_view fullPath, OBJECT* to ) override {
return fwd( [&]( IDataProviderSvc& svc ) { return svc.linkObject( fullPath, to ); } );
}
/// Remove a link to another object.
StatusCode unlinkObject( IRegistry* from, boost::string_ref objPath ) override {
StatusCode unlinkObject( IRegistry* from, std::string_view objPath ) override {
return fwd( [&]( IDataProviderSvc& svc ) { return svc.unlinkObject( from, objPath ); } );
}
/// Remove a link to another object.
StatusCode unlinkObject( OBJECT* from, boost::string_ref objPath ) override {
StatusCode unlinkObject( OBJECT* from, std::string_view objPath ) override {
return fwd( [&]( IDataProviderSvc& svc ) { return svc.unlinkObject( from, objPath ); } );
}
/// Remove a link to another object.
StatusCode unlinkObject( boost::string_ref path ) override {
StatusCode unlinkObject( std::string_view path ) override {
return fwd( [&]( IDataProviderSvc& svc ) { return svc.unlinkObject( path ); } );
}
/// Update object identified by its directory entry.
......
......@@ -160,19 +160,19 @@ public:
const std::string& rootName() const override { return m_rootName; }
/// IDataManagerSvc: Register object address with the data store.
StatusCode registerAddress( boost::string_ref path, IOpaqueAddress* pAddr ) override {
StatusCode registerAddress( std::string_view path, IOpaqueAddress* pAddr ) override {
return fwd( [&]( IDataManagerSvc& p ) { return p.registerAddress( path, pAddr ); } );
}
/// IDataManagerSvc: Register object address with the data store.
StatusCode registerAddress( IRegistry* parent, boost::string_ref path, IOpaqueAddress* pAdd ) override {
StatusCode registerAddress( IRegistry* parent, std::string_view path, IOpaqueAddress* pAdd ) override {
return fwd( [&]( IDataManagerSvc& p ) { return p.registerAddress( parent, path, pAdd ); } );
}
/// IDataManagerSvc: Unregister object address from the data store.
StatusCode unregisterAddress( boost::string_ref path ) override {
StatusCode unregisterAddress( std::string_view path ) override {
return fwd( [&]( IDataManagerSvc& p ) { return p.unregisterAddress( path ); } );
}
/// IDataManagerSvc: Unregister object address from the data store.
StatusCode unregisterAddress( IRegistry* pParent, boost::string_ref path ) override {
StatusCode unregisterAddress( IRegistry* pParent, std::string_view path ) override {
return fwd( [&]( IDataManagerSvc& p ) { return p.unregisterAddress( pParent, path ); } );
}
/// Explore the object store: retrieve all leaves attached to the object
......@@ -192,7 +192,7 @@ public:
return fwd( [&]( IDataManagerSvc& p ) { return p.objectParent( pObject, refpParent ); } );
}
/// Remove all data objects below the sub tree identified
StatusCode clearSubTree( boost::string_ref path ) override {
StatusCode clearSubTree( std::string_view path ) override {
return fwd( [&]( IDataManagerSvc& p ) { return p.clearSubTree( path ); } );
}
/// Remove all data objects below the sub tree identified
......@@ -206,7 +206,7 @@ public:
}
/// Analyze by traversing all data objects below the sub tree
StatusCode traverseSubTree( boost::string_ref path, IDataStoreAgent* pAgent ) override {
StatusCode traverseSubTree( std::string_view path, IDataStoreAgent* pAgent ) override {
return fwd( [&]( IDataManagerSvc& p ) { return p.traverseSubTree( path, pAgent ); } );
}
/// IDataManagerSvc: Analyze by traversing all data objects below the sub tree
......@@ -264,15 +264,15 @@ public:
return fwd( [&]( IDataProviderSvc& p ) { return p.preLoad(); } );
}
/// Register object with the data store.
StatusCode registerObject( boost::string_ref parent, boost::string_ref obj, DataObject* pObj ) override {
StatusCode registerObject( std::string_view parent, std::string_view obj, DataObject* pObj ) override {
return fwd( [&]( IDataProviderSvc& p ) { return p.registerObject( parent, obj, pObj ); } );
}
/// Register object with the data store.
StatusCode registerObject( DataObject* parent, boost::string_ref obj, DataObject* pObj ) override {
StatusCode registerObject( DataObject* parent, std::string_view obj, DataObject* pObj ) override {
return fwd( [&]( IDataProviderSvc& p ) { return p.registerObject( parent, obj, pObj ); } );
}
/// Unregister object from the data store.
StatusCode unregisterObject( boost::string_ref path ) override {
StatusCode unregisterObject( std::string_view path ) override {
return fwd( [&]( IDataProviderSvc& p ) { return p.unregisterObject( path ); } );
}
/// Unregister object from the data store.
......@@ -280,39 +280,39 @@ public:
return fwd( [&]( IDataProviderSvc& p ) { return p.unregisterObject( pObj ); } );
}
/// Unregister object from the data store.
StatusCode unregisterObject( DataObject* pObj, boost::string_ref path ) override {
StatusCode unregisterObject( DataObject* pObj, std::string_view path ) override {
return fwd( [&]( IDataProviderSvc& p ) { return p.unregisterObject( pObj, path ); } );
}
/// Retrieve object from data store.
StatusCode retrieveObject( IRegistry* parent, boost::string_ref path, DataObject*& pObj ) override {
StatusCode retrieveObject( IRegistry* parent, std::string_view path, DataObject*& pObj ) override {
return fwd( [&]( IDataProviderSvc& p ) { return p.retrieveObject( parent, path, pObj ); } );
}
/// Find object identified by its full path in the data store.
StatusCode findObject( boost::string_ref path, DataObject*& pObj ) override {
StatusCode findObject( std::string_view path, DataObject*& pObj ) override {
return fwd( [&]( IDataProviderSvc& p ) { return p.retrieveObject( path, pObj ); } );
}
/// Find object identified by its full path in the data store.
StatusCode findObject( IRegistry* parent, boost::string_ref path, DataObject*& pObj ) override {
StatusCode findObject( IRegistry* parent, std::string_view path, DataObject*& pObj ) override {
return fwd( [&]( IDataProviderSvc& p ) { return p.retrieveObject( parent, path, pObj ); } );
}
/// Add a link to another object.
StatusCode linkObject( IRegistry* from, boost::string_ref objPath, DataObject* to ) override {
StatusCode linkObject( IRegistry* from, std::string_view objPath, DataObject* to ) override {
return fwd( [&]( IDataProviderSvc& p ) { return p.linkObject( from, objPath, to ); } );
}
/// Add a link to another object.
StatusCode linkObject( boost::string_ref fullPath, DataObject* to ) override {
StatusCode linkObject( std::string_view fullPath, DataObject* to ) override {
return fwd( [&]( IDataProviderSvc& p ) { return p.linkObject( fullPath, to ); } );
}
/// Remove a link to another object.
StatusCode unlinkObject( IRegistry* from, boost::string_ref objPath ) override {
StatusCode unlinkObject( IRegistry* from, std::string_view objPath ) override {
return fwd( [&]( IDataProviderSvc& p ) { return p.unlinkObject( from, objPath ); } );
}
/// Remove a link to another object.
StatusCode unlinkObject( DataObject* from, boost::string_ref objPath ) override {
StatusCode unlinkObject( DataObject* from, std::string_view objPath ) override {
return fwd( [&]( IDataProviderSvc& p ) { return p.unlinkObject( from, objPath ); } );
}
/// Remove a link to another object.
StatusCode unlinkObject( boost::string_ref path ) override {
StatusCode unlinkObject( std::string_view path ) override {
return fwd( [&]( IDataProviderSvc& p ) { return p.unlinkObject( path ); } );
}
/// Update object identified by its directory entry.
......
......@@ -11,7 +11,7 @@
#include "GaudiKernel/Service.h"
#include "GaudiKernel/SmartIF.h"
#include <boost/utility/string_ref.hpp>
#include <string_view>
// Forward declarations
// Incident service
......@@ -82,20 +82,20 @@ public:
const std::string& rootName() const override;
/// IDataManagerSvc: Register object address with the data store.
StatusCode registerAddress( boost::string_ref fullPath, IOpaqueAddress* pAddress ) override;
StatusCode registerAddress( std::string_view fullPath, IOpaqueAddress* pAddress ) override;
using IDataManagerSvc::registerAddress;
/// IDataManagerSvc: Register object address with the data store.
StatusCode registerAddress( IRegistry* parentObj, boost::string_ref objectPath, IOpaqueAddress* pAddress ) override;
StatusCode registerAddress( IRegistry* parentObj, std::string_view objectPath, IOpaqueAddress* pAddress ) override;
using IDataManagerSvc::unregisterAddress;
/// IDataManagerSvc: Unregister object address from the data store.
StatusCode unregisterAddress( boost::string_ref fullPath ) override;
StatusCode unregisterAddress( std::string_view fullPath ) override;
/// IDataManagerSvc: Unregister object address from the data store.
StatusCode unregisterAddress( IRegistry* pParent, boost::string_ref objPath ) override;
StatusCode unregisterAddress( IRegistry* pParent, std::string_view objPath ) override;
/** IDataManagerSvc: Explore the object store: retrieve all leaves attached
* to the object
......@@ -114,7 +114,7 @@ public:
/** IDataManagerSvc: Remove all data objects below the sub tree identified
* by its full path name.
*/
StatusCode clearSubTree( boost::string_ref sub_tree_path ) override;
StatusCode clearSubTree( std::string_view sub_tree_path ) override;
/** IDataManagerSvc: Remove all data objects below the sub tree identified
* by the object.
......@@ -127,7 +127,7 @@ public:
/** IDataManagerSvc: Analyze by traversing all data objects below the sub
* tree identified by its full path name.
*/
StatusCode traverseSubTree( boost::string_ref sub_tree_path, IDataStoreAgent* pAgent ) override;
StatusCode traverseSubTree( std::string_view sub_tree_path, IDataStoreAgent* pAgent ) override;
/// IDataManagerSvc: Analyze by traversing all data objects below the sub tree
StatusCode traverseSubTree( DataObject* pObject, IDataStoreAgent* pAgent ) override;
......@@ -183,51 +183,51 @@ public:
using IDataProviderSvc::registerObject;
/// Register object with the data store.
StatusCode registerObject( boost::string_ref parentPath, boost::string_ref objPath, DataObject* pObject ) override;
StatusCode registerObject( std::string_view parentPath, std::string_view objPath, DataObject* pObject ) override;
/// Register object with the data store.
StatusCode registerObject( DataObject* parentObj, boost::string_ref objPath, DataObject* pObject ) override;
StatusCode registerObject( DataObject* parentObj, std::string_view objPath, DataObject* pObject ) override;
/// Unregister object from the data store.
StatusCode unregisterObject( boost::string_ref fullPath ) override;
StatusCode unregisterObject( std::string_view fullPath ) override;
/// Unregister object from the data store.
StatusCode unregisterObject( DataObject* pObject ) override;
/// Unregister object from the data store.
StatusCode unregisterObject( DataObject* pObject, boost::string_ref objectPath ) override;
StatusCode unregisterObject( DataObject* pObject, std::string_view objectPath ) override;
using IDataProviderSvc::retrieveObject;
/// Retrieve object from data store.
StatusCode retrieveObject( IRegistry* pDirectory, boost::string_ref path, DataObject*& pObject ) override;
StatusCode retrieveObject( IRegistry* pDirectory, std::string_view path, DataObject*& pObject ) override;
using IDataProviderSvc::findObject;
/// Find object identified by its full path in the data store.
StatusCode findObject( boost::string_ref fullPath, DataObject*& pObject ) override;
StatusCode findObject( std::string_view fullPath, DataObject*& pObject ) override;
/// Find object identified by its full path in the data store.
StatusCode findObject( IRegistry* pDirectory, boost::string_ref path, DataObject*& pObject ) override;
StatusCode findObject( IRegistry* pDirectory, std::string_view path, DataObject*& pObject ) override;
using IDataProviderSvc::linkObject;
/// Add a link to another object.
StatusCode linkObject( IRegistry* from, boost::string_ref objPath, DataObject* to ) override;
StatusCode linkObject( IRegistry* from, std::string_view objPath, DataObject* to ) override;
/// Add a link to another object.
StatusCode linkObject( boost::string_ref fullPath, DataObject* to ) override;
StatusCode linkObject( std::string_view fullPath, DataObject* to ) override;
using IDataProviderSvc::unlinkObject;
/// Remove a link to another object.
StatusCode unlinkObject( IRegistry* from, boost::string_ref objPath ) override;
StatusCode unlinkObject( IRegistry* from, std::string_view objPath ) override;
/// Remove a link to another object.
StatusCode unlinkObject( DataObject* fromObj, boost::string_ref objPath ) override;
StatusCode unlinkObject( DataObject* fromObj, std::string_view objPath ) override;
/// Remove a link to another object.
StatusCode unlinkObject( boost::string_ref fullPath ) override;
StatusCode unlinkObject( std::string_view fullPath ) override;
/// Update object identified by its directory entry.
StatusCode updateObject( IRegistry* pDirectory ) override;
......@@ -275,7 +275,7 @@ protected:
virtual StatusCode loadObject( IConversionSvc* pLoader, IRegistry* pNode );
/// Retrieve registry entry from store
StatusCode retrieveEntry( DataSvcHelpers::RegistryEntry* pNode, boost::string_ref path,
StatusCode retrieveEntry( DataSvcHelpers::RegistryEntry* pNode, std::string_view path,
DataSvcHelpers::RegistryEntry*& pEntry );
/** Invoke data fault handling if enabled
* @param pReg [IN] Pointer to missing registry entry
......@@ -283,11 +283,11 @@ protected:
*
* @return Object corresponding to the specified leaf
*/
DataObject* handleDataFault( IRegistry* pReg, boost::string_ref path = "" );
DataObject* handleDataFault( IRegistry* pReg, std::string_view path = "" );
private:
StatusCode i_retrieveEntry( DataSvcHelpers::RegistryEntry* parentObj, boost::string_ref path,
StatusCode i_retrieveEntry( DataSvcHelpers::RegistryEntry* parentObj, std::string_view path,
DataSvcHelpers::RegistryEntry*& pEntry );
DataObject* i_handleDataFault( IRegistry* pReg, boost::string_ref path = boost::string_ref{} );
DataObject* i_handleDataFault( IRegistry* pReg, std::string_view path = std::string_view{} );
};
#endif // GAUDIKERNEL_DATASVC_H
......@@ -5,8 +5,8 @@
#include "GaudiKernel/ClassID.h"
#include "GaudiKernel/IDataStoreAgent.h"
#include "GaudiKernel/IInterface.h"
#include "boost/utility/string_ref.hpp"
#include <string>
#include <string_view>
#include <vector>
// Forward declarations
......@@ -100,7 +100,7 @@ struct GAUDI_API IDataManagerSvc : extend_interfaces<IInterface> {
@param sub_path [IN] Path to sub-tree node.
@return Status code indicating success or failure.
*/
virtual StatusCode clearSubTree( boost::string_ref sub_path ) = 0;
virtual StatusCode clearSubTree( std::string_view sub_path ) = 0;
/** Remove all data objects below the sub tree
identified by the object. The object itself is removed as well.
......@@ -118,7 +118,7 @@ struct GAUDI_API IDataManagerSvc : extend_interfaces<IInterface> {
@param sub_path [IN] Path to sub-tree node.
@return Status code indicating success or failure.
*/
virtual StatusCode traverseSubTree( boost::string_ref sub_tree_path, IDataStoreAgent* pAgent ) = 0;
virtual StatusCode traverseSubTree( std::string_view sub_tree_path, IDataStoreAgent* pAgent ) = 0;
/** Analyse by traversing all data objects below the sub tree identified by its full path name.
@param sub_path [IN] Path to sub-tree node.
......@@ -127,7 +127,7 @@ struct GAUDI_API IDataManagerSvc : extend_interfaces<IInterface> {
@return Status code indicating success or failure.
*/
template <typename F, typename = std::enable_if_t<!std::is_convertible<F, IDataStoreAgent*>::value>>
StatusCode traverseSubTree( boost::string_ref sub_path, F&& f ) {
StatusCode traverseSubTree( std::string_view sub_path, F&& f ) {
auto agent = makeDataStoreAgent( std::forward<F>( f ) );
return traverseSubTree( sub_path, &agent );
}
......@@ -192,7 +192,7 @@ struct GAUDI_API IDataManagerSvc : extend_interfaces<IInterface> {
@param pAddress [IN] Pointer to the object to be registered.
@return Status code indicating success or failure.
*/
virtual StatusCode registerAddress( boost::string_ref fullPath, IOpaqueAddress* pAddress ) = 0;
virtual StatusCode registerAddress( std::string_view fullPath, IOpaqueAddress* pAddress ) = 0;
/** Register object address with the data store.
Connect the object identified by its pointer to the parent object
......@@ -202,7 +202,7 @@ struct GAUDI_API IDataManagerSvc : extend_interfaces<IInterface> {
@param pAddress [IN] Pointer to the object to be connected.
@return Status code indicating success or failure.
*/
StatusCode registerAddress( DataObject* parentObj, boost::string_ref objectPath, IOpaqueAddress* pAddress ) {
StatusCode registerAddress( DataObject* parentObj, std::string_view objectPath, IOpaqueAddress* pAddress ) {
return registerAddress( parentObj ? parentObj->registry() : nullptr, objectPath, pAddress );
}
......@@ -214,15 +214,14 @@ struct GAUDI_API IDataManagerSvc : extend_interfaces<IInterface> {
@param pAddress [IN] Pointer to the object to be connected.
@return Status code indicating success or failure.
*/
virtual StatusCode registerAddress( IRegistry* parentObj, boost::string_ref objectPath,
IOpaqueAddress* pAddress ) = 0;
virtual StatusCode registerAddress( IRegistry* parentObj, std::string_view objectPath, IOpaqueAddress* pAddress ) = 0;
/** Unregister object address from the data store.
The object is identified by full path name.
@param fullPath [IN] Path name of the object.
@return Status code indicating success or failure.
*/
virtual StatusCode unregisterAddress( boost::string_ref fullPath ) = 0;
virtual StatusCode unregisterAddress( std::string_view fullPath ) = 0;
/** Unregister object address from the data store.
The object is identified by parent object and the path of the
......@@ -231,7 +230,7 @@ struct GAUDI_API IDataManagerSvc : extend_interfaces<IInterface> {
@param objPath [IN] Path name of the object relative to the parent.
@return Status code indicating success or failure.
*/
StatusCode unregisterAddress( DataObject* pParent, boost::string_ref objPath ) {
StatusCode unregisterAddress( DataObject* pParent, std::string_view objPath ) {
return unregisterAddress( pParent ? pParent->registry() : nullptr, objPath );
}
......@@ -242,7 +241,7 @@ struct GAUDI_API IDataManagerSvc : extend_interfaces<IInterface> {
@param objPath [IN] Path name of the object relative to the parent.
@return Status code indicating success or failure.
*/
virtual StatusCode unregisterAddress( IRegistry* pParent, boost::string_ref objPath ) = 0;
virtual StatusCode unregisterAddress( IRegistry* pParent, std::string_view objPath ) = 0;
};
#endif // GAUDIKERNEL_IDATAMANAGERSVC_H
......@@ -5,8 +5,8 @@
#include "GaudiKernel/IInterface.h"
// C/C++ include files
#include "boost/utility/string_ref.hpp"
#include <string>
#include <string_view>
// Forward declarations
class IOpaqueAddress;
......@@ -59,7 +59,7 @@ public:
* @param pObject Pointer to the object to be registered.
* @return Status code indicating success or failure.
*/
StatusCode registerObject( boost::string_ref fullPath, DataObject* pObject ) {
StatusCode registerObject( std::string_view fullPath, DataObject* pObject ) {
return registerObject( nullptr, fullPath, pObject );
}
......@@ -71,7 +71,7 @@ public:
* @param pObject Pointer to the object to be registered.
* @return Status code indicating success or failure.
*/
virtual StatusCode registerObject( boost::string_ref parentPath, boost::string_ref objectPath,
virtual StatusCode registerObject( std::string_view parentPath, std::string_view objectPath,
DataObject* pObject ) = 0;
/** Register object with the data store.
......@@ -82,7 +82,7 @@ public:
* @param pObject Pointer to the object to be registered.
* @return Status code indicating success or failure.
*/
StatusCode registerObject( boost::string_ref parentPath, int item, DataObject* pObject ) {
StatusCode registerObject( std::string_view parentPath, int item, DataObject* pObject ) {
return registerObject( parentPath, itemToPath( item ), pObject );
}
......@@ -94,7 +94,7 @@ public:
* @param pObject Pointer to the object to be connected.
* @return Status code indicating success or failure.
*/
virtual StatusCode registerObject( DataObject* parentObj, boost::string_ref objectPath, DataObject* pObject ) = 0;
virtual StatusCode registerObject( DataObject* parentObj, std::string_view objectPath, DataObject* pObject ) = 0;
/** Register object with the data store.
* Connect the object identified by its pointer to the node object
......@@ -121,7 +121,7 @@ public:
* @param fullPath Path name of the object.
* @return Status code indicating success or failure.
*/
virtual StatusCode unregisterObject( boost::string_ref fullPath ) = 0;
virtual StatusCode unregisterObject( std::string_view fullPath ) = 0;
/** Unregister object from the data store.
* On registration the client gives up ownership of the object and may no
......@@ -137,7 +137,7 @@ public:
* @param objPath Path name of the object relative to the parent.
* @return Status code indicating success or failure.
*/
StatusCode unregisterObject( boost::string_ref parentPath, boost::string_ref objPath ) {
StatusCode unregisterObject( std::string_view parentPath, std::string_view objPath ) {
DataObject* pO = nullptr;
StatusCode status = findObject( parentPath, pO );
return status.isSuccess() ? unregisterObject( pO, objPath ) : status;
......@@ -157,7 +157,7 @@ public:
* @param item Integer identifier of the object item.
* @return Status code indicating success or failure.
*/
StatusCode unregisterObject( boost::string_ref parentPath, int item ) {
StatusCode unregisterObject( std::string_view parentPath, int item ) {
return unregisterObject( parentPath, itemToPath( item ) );
}
......@@ -190,7 +190,7 @@ public:
* @param objPath Path name of the object relative to the parent.
* @return Status code indicating success or failure.
*/
virtual StatusCode unregisterObject( DataObject* pParent, boost::string_ref objPath ) = 0;
virtual StatusCode unregisterObject( DataObject* pParent, std::string_view objPath ) = 0;
/** Unregister object from the data store.
* On registration the client gives up ownership of the object and may no
......@@ -220,7 +220,7 @@ public:
* @param pObject Reference to the pointer of the object to be returned.
* @return Status code indicating success or failure.
*/
virtual StatusCode retrieveObject( IRegistry* pDirectory, boost::string_ref path, DataObject*& pObject ) = 0;
virtual StatusCode retrieveObject( IRegistry* pDirectory, std::string_view path, DataObject*& pObject ) = 0;
/** Retrieve object identified by its full path from the data store.
* The result will be returned in the second argument.
......@@ -230,7 +230,7 @@ public:
* @param pObject Reference to the pointer of the object to be returned.
* @return Status code indicating success or failure.
*/
StatusCode retrieveObject( boost::string_ref fullPath, DataObject*& pObject ) {
StatusCode retrieveObject( std::string_view fullPath, DataObject*& pObject ) {
return retrieveObject( static_cast<IRegistry*>( nullptr ), fullPath, pObject );
}
......@@ -244,7 +244,7 @@ public:
* @param pObject Reference to the pointer of the object to be returned.
* @return Status code indicating success or failure.
*/
StatusCode retrieveObject( boost::string_ref parentPath, boost::string_ref objectPath, DataObject*& pObject ) {
StatusCode retrieveObject( std::string_view parentPath, std::string_view objectPath, DataObject*& pObject ) {
DataObject* parent = nullptr;
StatusCode status = retrieveObject( parentPath, parent );
return status.isSuccess() ? retrieveObject( parent, objectPath, pObject ) : status;
......@@ -260,7 +260,7 @@ public:
* @param pObject Reference to the pointer of the object to be returned.
* @return Status code indicating success or failure.
*/
StatusCode retrieveObject( boost::string_ref parentPath, int item, DataObject*& pObject ) {
StatusCode retrieveObject( std::string_view parentPath, int item, DataObject*& pObject ) {
return retrieveObject( parentPath, itemToPath( item ), pObject );
}
......@@ -274,7 +274,7 @@ public:
* @param pObject Reference to the pointer of the object to be returned.
* @return Status code indicating success or failure.
*/
StatusCode retrieveObject( DataObject* parentObj, boost::string_ref objectPath, DataObject*& pObject ) {
StatusCode retrieveObject( DataObject* parentObj, std::string_view objectPath, DataObject*& pObject ) {
return retrieveObject( parentObj ? parentObj->registry() : nullptr, objectPath, pObject );
}
......@@ -301,7 +301,7 @@ public:
* @param pObject Reference to the pointer of the object to be returned.
* @return Status code indicating success or failure.
*/
virtual StatusCode findObject( IRegistry* pDirectory, boost::string_ref path, DataObject*& pObject ) = 0;
virtual StatusCode findObject( IRegistry* pDirectory, std::string_view path, DataObject*& pObject ) = 0;
/** Find object identified by its full path in the data store.
* The result will be returned in the second argument.
......@@ -310,7 +310,7 @@ public:
* @param pObject Pointer to the object to be connected.
* @return Status code indicating success or failure.
*/
virtual StatusCode findObject( boost::string_ref fullPath, DataObject*& pObject ) = 0;
virtual StatusCode findObject( std::string_view fullPath, DataObject*& pObject ) = 0;