Aimsun Next Scripting: GKContent Class Reference
Aimsun Next Scripting  22
Public Types | Public Member Functions | List of all members
GKContent Class Reference

Public Types

typedef QString Type
 
typedef QString Id
 

Public Member Functions

 GKContent ()
 
 GKContent (Type t, QString id, QString name="")
 
virtual ~GKContent ()
 
const Typetype () const
 
const Idid () const
 
virtual QString typeDescription () const
 
virtual QString idDescription () const
 
bool isNull () const
 
bool operator< (const GKContent &other) const
 
bool operator== (const GKContent &other) const
 
bool operator!= (const GKContent &other) const
 

Detailed Description

Note
The name of the content ( returned by idDescription() ) is defined using one the two constructors:
  • one that uses a fixed QString (for example: tr("All lanes") )
  • one that uses function that retrieves the name from the id and the type of the content.

Member Typedef Documentation

◆ Id

typedef QString GKContent::Id

◆ Type

typedef QString GKContent::Type

Constructor & Destructor Documentation

◆ GKContent() [1/2]

GKContent::GKContent ( )

◆ GKContent() [2/2]

GKContent::GKContent ( Type  t,
QString  id,
QString  name = "" 
)

◆ ~GKContent()

virtual GKContent::~GKContent ( )
virtual

Member Function Documentation

◆ id()

const Id & GKContent::id ( ) const

Returns the id of the content.

◆ idDescription()

virtual QString GKContent::idDescription ( ) const
virtual

Returns a descriptive translated string of mId.

◆ isNull()

bool GKContent::isNull ( ) const

Returns true if the id is defined.

◆ operator!=()

bool GKContent::operator!= ( const GKContent other) const

◆ operator<()

bool GKContent::operator< ( const GKContent other) const

◆ operator==()

bool GKContent::operator== ( const GKContent other) const

◆ type()

const Type & GKContent::type ( ) const

Returns the type of content.

◆ typeDescription()

virtual QString GKContent::typeDescription ( ) const
virtual

Returns a descriptive translated string of mType.

© Aimsun SLU
Aimsun ®