Aimsun Next Scripting: Aimsun::GShape::ImporterInterface Class Reference
Aimsun Next Scripting  22
Public Member Functions | List of all members
Aimsun::GShape::ImporterInterface Class Reference

Public Member Functions

 ImporterInterface ()
 
void setGkModel (GKModel *value)
 
void setImporterConfiguration (Aimsun::GShape::BasicImporterConfiguration *value)
 
void setImporterConfigurationFromXMLFile (const QString &xmlFileName)
 
void doImport ()
 
bool error () const
 
const QString & getErrorMessage () const
 

Constructor & Destructor Documentation

◆ ImporterInterface()

Aimsun::GShape::ImporterInterface::ImporterInterface ( )

Member Function Documentation

◆ doImport()

void Aimsun::GShape::ImporterInterface::doImport ( )

Imports the given configuration to the given GKModel. This call can produce errors if GKModel or Importer Configuration are not defined.

◆ error()

bool Aimsun::GShape::ImporterInterface::error ( ) const

True if there was any error in the last call.

◆ getErrorMessage()

const QString & Aimsun::GShape::ImporterInterface::getErrorMessage ( ) const

Get the error message of the last call if any.

◆ setGkModel()

void Aimsun::GShape::ImporterInterface::setGkModel ( GKModel value)

Set the GKModel where the GIS information will be imported.

◆ setImporterConfiguration()

void Aimsun::GShape::ImporterInterface::setImporterConfiguration ( Aimsun::GShape::BasicImporterConfiguration value)

Set the GIS importer configuration.

◆ setImporterConfigurationFromXMLFile()

void Aimsun::GShape::ImporterInterface::setImporterConfigurationFromXMLFile ( const QString &  xmlFileName)

Read the XML file with the GIS importer configuration and set it. The XML file name format is: "<base_shape_file_name_with_extension>_aimsun.xml". This call can produce errors when:

  • The XML file cannot be opened.
  • The XML file have invalid format.
  • The XML file name have invalid format.

© Aimsun SLU
Aimsun ®