BOSS 8.0.0
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 31 of file EvtModelAlias.hh.

31{};

Referenced by EvtModelAlias(), and operator=().

◆ EvtModelAlias() [2/3]

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

Definition at line 25 of file EvtModelAlias.cc.

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

◆ ~EvtModelAlias()

EvtModelAlias::~EvtModelAlias ( )
inline

Definition at line 33 of file EvtModelAlias.hh.

33{};

◆ EvtModelAlias() [3/3]

EvtModelAlias::EvtModelAlias ( const EvtModelAlias & copyMe)

Definition at line 45 of file EvtModelAlias.cc.

46 :
47
48 _aliasName( copyMe._aliasName )
49 , _model( copyMe._model ) {
50 if ( copyMe._modelArgs.size() > 0 )
51 {
52 int i;
53 for ( i = 0; i < copyMe._modelArgs.size(); i++ )
54 _modelArgs.push_back( copyMe._modelArgs[i] );
55 }
56}

Member Function Documentation

◆ getArgList()

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

Definition at line 72 of file EvtModelAlias.cc.

72{ return _modelArgs; }

◆ getName()

std::string EvtModelAlias::getName ( )
inline

Definition at line 40 of file EvtModelAlias.hh.

40{ return _model; }

◆ matchAlias()

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

Definition at line 36 of file EvtModelAlias.hh.

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

◆ operator=()

EvtModelAlias EvtModelAlias::operator= ( const EvtModelAlias & copyMe)

Definition at line 58 of file EvtModelAlias.cc.

58 {
59
60 _aliasName = copyMe._aliasName;
61 _model = copyMe._model;
62
63 if ( copyMe._modelArgs.size() > 0 )
64 {
65 int i;
66 for ( i = 0; i < copyMe._modelArgs.size(); i++ )
67 _modelArgs.push_back( copyMe._modelArgs[i] );
68 }
69 return *this;
70}

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