From a88f01d376e0aae81823e2cef4dedd4ba15836c1 Mon Sep 17 00:00:00 2001 From: Atlas-Software Librarian <Atlas-Software.Librarian@cern.ch> Date: Fri, 8 Apr 2016 16:41:07 +0200 Subject: [PATCH] 'CMakeLists.txt' (CLIDSvc-00-05-02) --- Control/CLIDSvc/CLIDSvc/CLASS_DEF.h | 11 ++++ Control/CLIDSvc/CLIDSvc/tools/CLIDRegistry.h | 11 ++++ .../CLIDSvc/CLIDSvc/tools/ClassID_traits.h | 16 ++++++ Control/CLIDSvc/CMakeLists.txt | 19 +++++++ Control/CLIDSvc/cmt/requirements | 16 ++++++ Control/CLIDSvc/doc/INSTALL | 0 Control/CLIDSvc/doc/MANIFEST | 18 +++++++ Control/CLIDSvc/doc/MainPage.h | 50 +++++++++++++++++++ 8 files changed, 141 insertions(+) create mode 100755 Control/CLIDSvc/CLIDSvc/CLASS_DEF.h create mode 100755 Control/CLIDSvc/CLIDSvc/tools/CLIDRegistry.h create mode 100755 Control/CLIDSvc/CLIDSvc/tools/ClassID_traits.h create mode 100644 Control/CLIDSvc/CMakeLists.txt create mode 100755 Control/CLIDSvc/cmt/requirements create mode 100755 Control/CLIDSvc/doc/INSTALL create mode 100755 Control/CLIDSvc/doc/MANIFEST create mode 100755 Control/CLIDSvc/doc/MainPage.h diff --git a/Control/CLIDSvc/CLIDSvc/CLASS_DEF.h b/Control/CLIDSvc/CLIDSvc/CLASS_DEF.h new file mode 100755 index 00000000000..1bed5b8d1e8 --- /dev/null +++ b/Control/CLIDSvc/CLIDSvc/CLASS_DEF.h @@ -0,0 +1,11 @@ +/* + Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +*/ + +#ifndef CLIDSVC_CLASSDEF_H +#define CLIDSVC_CLASSDEF_H + +// forward to SGTools which is the new home of CLASS_DEF +#include "SGTools/CLASS_DEF.h" + +#endif // not CLIDSVC_CLASSDEF_H diff --git a/Control/CLIDSvc/CLIDSvc/tools/CLIDRegistry.h b/Control/CLIDSvc/CLIDSvc/tools/CLIDRegistry.h new file mode 100755 index 00000000000..0afa4e25f98 --- /dev/null +++ b/Control/CLIDSvc/CLIDSvc/tools/CLIDRegistry.h @@ -0,0 +1,11 @@ +/* + Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +*/ + +#ifndef TOOLS_CLIDREGISTRY_H +# define TOOLS_CLIDREGISTRY_H + +// forwarding to 'real' CLIDRegistry +#include "SGTools/CLIDRegistry.h" + +#endif // TOOLS_CLIDREGISTRY_H diff --git a/Control/CLIDSvc/CLIDSvc/tools/ClassID_traits.h b/Control/CLIDSvc/CLIDSvc/tools/ClassID_traits.h new file mode 100755 index 00000000000..5f132a6a387 --- /dev/null +++ b/Control/CLIDSvc/CLIDSvc/tools/ClassID_traits.h @@ -0,0 +1,16 @@ +/* + Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +*/ + +#ifndef TOOLS_CLASSID_TRAITS_H +#define TOOLS_CLASSID_TRAITS_H + +// forwarding to 'real' ClassID_traits +#include "SGTools/ClassID_traits.h" + +#endif + + + + + diff --git a/Control/CLIDSvc/CMakeLists.txt b/Control/CLIDSvc/CMakeLists.txt new file mode 100644 index 00000000000..54be289e8bc --- /dev/null +++ b/Control/CLIDSvc/CMakeLists.txt @@ -0,0 +1,19 @@ +################################################################################ +# Package: CLIDSvc +################################################################################ + +# Declare the package name: +atlas_subdir( CLIDSvc ) + +# Declare the package's dependencies: +atlas_depends_on_subdirs( PUBLIC + Control/SGTools + PRIVATE + AtlasTest/TestTools ) + +# External dependencies: +find_package( PythonLibs ) + +# Install files from the package: +atlas_install_headers( CLIDSvc ) + diff --git a/Control/CLIDSvc/cmt/requirements b/Control/CLIDSvc/cmt/requirements new file mode 100755 index 00000000000..0a1a84c5d66 --- /dev/null +++ b/Control/CLIDSvc/cmt/requirements @@ -0,0 +1,16 @@ +package CLIDSvc + +author Paolo Calafiura <Paolo.Calafiura@cern.ch> +author Craig Tull <cetull@lbl.gov> + +use AtlasPolicy AtlasPolicy-* +use SGTools SGTools-* Control +use AtlasPython AtlasPython-* External -no_auto_imports + +private +use TestTools TestTools-* AtlasTest +apply_pattern install_runtime + + +macro_append DOXYGEN_INPUT " ../doc ../test ../share " +macro_append DOXYGEN_FILE_PATTERNS " *.icc clid " diff --git a/Control/CLIDSvc/doc/INSTALL b/Control/CLIDSvc/doc/INSTALL new file mode 100755 index 00000000000..e69de29bb2d diff --git a/Control/CLIDSvc/doc/MANIFEST b/Control/CLIDSvc/doc/MANIFEST new file mode 100755 index 00000000000..29eb8460cb3 --- /dev/null +++ b/Control/CLIDSvc/doc/MANIFEST @@ -0,0 +1,18 @@ +../ +|-- README.TXT +|-- bin +|-- cmt +|-- doc +| |-- INSTALL +| `-- MANIFEST +|-- run +|-- share +| |-- PYTHONSTARTUP +| |-- clid +| |-- clid.db +| |-- clid.py +| |-- clidGen.py +| `-- cvs2cliddb.csh +`-- src + +6 directories, 9 files diff --git a/Control/CLIDSvc/doc/MainPage.h b/Control/CLIDSvc/doc/MainPage.h new file mode 100755 index 00000000000..0a52a32ae77 --- /dev/null +++ b/Control/CLIDSvc/doc/MainPage.h @@ -0,0 +1,50 @@ +/* + Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +*/ + +/** + + @mainpage + +Tools for generating and managing CLIDs. In particular the include file +CLASS_DEF.h provides the CLASS_DEF macro that allows to associate a +CLID to a type. +The clid script provides command-line access to the CLID +"database" clid.db and uses a hash function to generate a +unique CLID (ignoring the possibility of "hash collisions"). +For usage enter "clid -h". + +Notice that currently (13.0.X) clid.db is not used to verify at run-time +in athena that there are no duplicates in CLID assignments. The +problem is that we have no mechanism to generate clid.db as part of +the build process. Also since everyone seems to be using the clid +script now to assign new CLIDs to their data objects we haven't +observed a conflict in CLID assignment since a couple of release cycles. + +More information on CLID assignment is available from +http://atlas-computing.web.cern.ch/atlas-computing/packages/edm/clid.php. + + +@htmlinclude used_packages.html + +@section Tests Unit Tests + +The directory test contains test programs that can be run issuing +a "gmake check" (after "source setup.sh"). + - CLIDRegistry_test.cxx + - clid_unittest.py + + +@section requirements CMT requirements file + +@include requirements + +@section Docs More Documentation + +The code can be browsed using LXR +(http://atlassw1.phy.bnl.gov/lxr/source/atlas/Control/CLIDSvc/) + + +@author Craig Tull <CETull@lbl.gov> +@author Paolo Calafiura <PCalafiura@lbl.gov> +*/ -- GitLab