* Added new Handler Classes for HOMER Proxy
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTHOMERSourceDesc.cxx
CommitLineData
155ff173 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Authors: Jochen Thaeder <thaeder@kip.uni-heidelberg.de> *
5 * for The ALICE HLT Project. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/** @file AliHLTHOMERSourceDesc.cxx
17 @author Jochen Thaeder
18 @date
19 @brief Container for HOMER Sources
20*/
21
22// see header file for class documentation
23// or
24// refer to README to build package
25// or
26// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
27
28#if __GNUC__>= 3
29 using namespace std;
30#endif
31
32#include "AliHLTHOMERSourceDesc.h"
33
34
35ClassImp(AliHLTHOMERSourceDesc)
36
37//##################################################################################
38AliHLTHOMERSourceDesc::AliHLTHOMERSourceDesc() :
39 fSelected( kFALSE ),
06272c83 40 fSourceName(),
155ff173 41 fHostname(),
42 fPort(),
06272c83 43 fDataType(),
155ff173 44 fDetector(),
155ff173 45 fSpecification(),
06272c83 46 fSubDetector(),
47 fSubSubDetector() {
155ff173 48 // see header file for class documentation
49 // or
50 // refer to README to build package
51 // or
52 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
53}
54
155ff173 55//##################################################################################
06272c83 56AliHLTHOMERSourceDesc::~AliHLTHOMERSourceDesc() {
155ff173 57 // see header file for class documentation
155ff173 58}
59
06272c83 60/*
61 * ---------------------------------------------------------------------------------
62 * Setter - public
63 * ---------------------------------------------------------------------------------
64 */
155ff173 65
06272c83 66//#################################################################################
67void AliHLTHOMERSourceDesc::SetService( TString hostname, Int_t port, TString origin,
68 TString type, TString /*spec*/ ) {
155ff173 69 // see header file for class documentation
155ff173 70
06272c83 71 fSourceName.Form("%s_%s%_%ul", fDetector.Data(), fDataType.Data(), fSpecification);
72
73 fHostname = hostname;
74 fPort = port;
75
76 fDataType = type;
77 fDataType.Remove( TString::kTrailing, ' ' );
78
79 fDetector = origin;
80 fDetector.Remove( TString::kTrailing, ' ' );
81
82 // -- Temporary until Specification is set in service
83 fSpecification = 0;
84 fSubDetector = 0;
85 fSubSubDetector = 0;
86
87 return;
88}