BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtModelAlias Class Reference

#include <EvtModelAlias.hh>

Public Member Functions

 EvtModelAlias ()
 
 EvtModelAlias (std::string alias, std::string model, std::vector< std::string > args)
 
 ~EvtModelAlias ()
 
 EvtModelAlias (const EvtModelAlias &copyMe)
 
EvtModelAlias operator= (const EvtModelAlias &copyMe)
 
bool matchAlias (const std::string &cand)
 
std::string getName ()
 
std::vector< std::string > getArgList ()
 

Detailed Description

Definition at line 28 of file EvtModelAlias.hh.

Constructor & Destructor Documentation

◆ EvtModelAlias() [1/3]

EvtModelAlias::EvtModelAlias ( )
inline

Definition at line 32 of file EvtModelAlias.hh.

32{};

◆ EvtModelAlias() [2/3]

EvtModelAlias::EvtModelAlias ( std::string  alias,
std::string  model,
std::vector< std::string >  args 
)

Definition at line 25 of file EvtModelAlias.cc.

25 :
26
27 _aliasName(alias)
28 ,_model(model)
29
30{
31
32 if ( args.size() > 0 ) {
33 int i;
34 for ( i=0; i<args.size(); i++) {
35 std::string tempStr=args[i];
36 _modelArgs.push_back(tempStr);
37 }
38 }
39}

◆ ~EvtModelAlias()

EvtModelAlias::~EvtModelAlias ( )
inline

Definition at line 34 of file EvtModelAlias.hh.

34{};

◆ EvtModelAlias() [3/3]

EvtModelAlias::EvtModelAlias ( const EvtModelAlias copyMe)

Definition at line 41 of file EvtModelAlias.cc.

41 :
42
43 _aliasName(copyMe._aliasName)
44 ,_model(copyMe._model)
45{
46 if ( copyMe._modelArgs.size() > 0 ) {
47 int i;
48 for ( i=0; i<copyMe._modelArgs.size(); i++) _modelArgs.push_back(copyMe._modelArgs[i]);
49 }
50}

Member Function Documentation

◆ getArgList()

std::vector< std::string > EvtModelAlias::getArgList ( )

Definition at line 64 of file EvtModelAlias.cc.

64 {
65
66 return _modelArgs;
67}

◆ getName()

std::string EvtModelAlias::getName ( )
inline

Definition at line 39 of file EvtModelAlias.hh.

39{ return _model;}

◆ matchAlias()

bool EvtModelAlias::matchAlias ( const std::string &  cand)
inline

Definition at line 37 of file EvtModelAlias.hh.

37 {if (cand==_aliasName) return true;
38 return false;}

◆ operator=()

EvtModelAlias EvtModelAlias::operator= ( const EvtModelAlias copyMe)

Definition at line 52 of file EvtModelAlias.cc.

52 {
53
54 _aliasName=copyMe._aliasName;
55 _model=copyMe._model;
56
57 if ( copyMe._modelArgs.size() > 0 ) {
58 int i;
59 for ( i=0; i<copyMe._modelArgs.size(); i++) _modelArgs.push_back(copyMe._modelArgs[i]);
60 }
61 return *this;
62}

The documentation for this class was generated from the following files: