Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
JAliEn
JAliEn-ROOT
Commits
f5dd0431
Commit
f5dd0431
authored
Jun 19, 2019
by
Nikola Hardi
Browse files
Introduce TAliceFile and TAliceCollection
parent
bdf7f812
Changes
4
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
f5dd0431
...
...
@@ -19,12 +19,16 @@ message(STATUS "Using same ROOT CXX flags: ${CMAKE_CXX_FLAGS}")
# This is our library's name
set
(
LIBNAME JAliEnROOT
)
include_directories
(
${
LIBNAME
}
${
OPENSSL_INCLUDE_DIR
}
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/inc
)
include_directories
(
${
AGU
}
/include
)
file
(
GLOB SRCS
"src/*.cxx"
)
string
(
REPLACE
".cxx"
".h"
HDRS
"
${
SRCS
}
"
)
string
(
REPLACE
"src"
"inc"
HDRS
"
${
HDRS
}
"
)
include_directories
(
${
LIBNAME
}
${
OPENSSL_INCLUDE_DIR
}
)
set
(
HDRS
${
HDRS
}
"
${
AGU
}
/include/TAliceCollection.h"
"
${
AGU
}
/include/TAliceFile.h"
)
ROOT_GENERATE_DICTIONARY
(
G__
${
LIBNAME
}
"
${
HDRS
}
"
LINKDEF LinkDef.h
)
add_library
(
${
LIBNAME
}
SHARED
"
${
SRCS
}
"
G__
${
LIBNAME
}
.cxx
)
target_link_libraries
(
${
LIBNAME
}
${
ROOT_LIBRARIES
}
json-c websockets
${
OPENSSL_LIBRARIES
}
${
ZLIB_LIBRARIES
}
)
...
...
inc/TJAlienCollection.h
View file @
f5dd0431
...
...
@@ -21,7 +21,7 @@
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TGridCollection
#include "T
Grid
Collection.h"
#include "T
Alice
Collection.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
...
...
@@ -33,7 +33,7 @@
#include "TFileStager.h"
#endif
class
TJAlienCollection
:
public
T
Grid
Collection
{
class
TJAlienCollection
:
public
T
Alice
Collection
{
private:
TString
fXmlFile
;
// collection XML file
...
...
inc/TJAlienFile.h
View file @
f5dd0431
...
...
@@ -9,12 +9,12 @@
#define ROOT_TJAlienFile
#ifndef ROOT_TXNetFile
#include "T
XNet
File.h"
#include "T
Alice
File.h"
#endif
class
TUrl
;
class
TJAlienFile
:
public
T
XNet
File
{
class
TJAlienFile
:
public
T
Alice
File
{
private:
TString
fLfn
;
// logical file name
...
...
@@ -29,7 +29,7 @@ private:
Long64_t
fOpenedAt
;
// Absolute value for time when opened
Double_t
fElapsed
;
// Time elapsed to opem file
public:
TJAlienFile
()
:
T
XNet
File
(),
fLfn
(),
fAuthz
(),
fGUID
(),
fUrl
(),
fPfn
(),
fSE
(),
fNreplicas
(
0
),
fOpenedAt
(
0
),
fElapsed
(
0
)
{
}
TJAlienFile
()
:
T
Alice
File
(),
fLfn
(),
fAuthz
(),
fGUID
(),
fUrl
(),
fPfn
(),
fSE
(),
fNreplicas
(
0
),
fOpenedAt
(
0
),
fElapsed
(
0
)
{
}
TJAlienFile
(
const
char
*
purl
,
Option_t
*
option
=
""
,
const
char
*
ftitle
=
""
,
Int_t
compress
=
1
,
Bool_t
parallelopen
=
kFALSE
,
const
char
*
lurl
=
0
,
...
...
src/TJAlienFile.cxx
View file @
f5dd0431
...
...
@@ -30,7 +30,7 @@ TJAlienFile::TJAlienFile(const char *purl, Option_t *option,
const
char
*
ftitle
,
Int_t
compress
,
Bool_t
parallelopen
,
const
char
*
lurl
,
const
char
*
authz
)
:
T
XNet
File
(
purl
,
option
,
ftitle
,
compress
,
0
,
parallelopen
,
lurl
)
{
T
Alice
File
(
purl
,
option
,
ftitle
,
compress
,
0
,
parallelopen
,
lurl
)
{
TUrl
logicalUrl
(
lurl
);
fLfn
=
logicalUrl
.
GetFile
();
fAuthz
=
authz
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment