Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::ServiceBuildInfoBase Class Reference

Information for creating a service. More...

#include <arcane/core/ServiceBuildInfo.h>

Public Member Functions

IApplicationapplication () const
 Access to the associated IApplication.
ISessionsession () const
 Access to the associated ISession.
ISubDomainsubDomain () const
 Access to the associated ISubDomain.
IMeshmesh () const
 Access to the associated IMesh.
const MeshHandlemeshHandle () const
 Access to the associated mesh handle MeshHandle.
ICaseOptionscaseOptions () const
 Access to the associated ICaseOptions.
IBaseserviceParent () const
 Access to the parent instance that created this instance.
eServiceType creationType () const
 Type of service that can be created by this instance.
Constructors.

The different constructors allow defining the service type (eServiceType).

 ServiceBuildInfoBase (IApplication *app)
 Service associated with an application IApplication.
 ServiceBuildInfoBase (ISession *session)
 Service associated with a session ISession.
 ServiceBuildInfoBase (ISubDomain *sd)
 Service associated with a subdomain ISubDomain.
 ServiceBuildInfoBase (ISubDomain *sd, IMesh *mesh)
 Service associated with a mesh mesh.
 ServiceBuildInfoBase (const MeshHandle &mesh_handle)
 Service associated with a mesh mesh_handle.
 ServiceBuildInfoBase (ISubDomain *sd, const MeshHandle &mesh_handle)
 Service associated with a mesh mesh_handle.
 ServiceBuildInfoBase (ICaseOptions *co)
 Service associated with a dataset option co.
 ServiceBuildInfoBase (ISubDomain *sd, ICaseOptions *co)
 Service associated with a dataset option co.
 ServiceBuildInfoBase (IMesh *mesh)
 Service associated with a mesh mesh.

Detailed Description

Information for creating a service.

Instances of this class are internal to Arcane. Generally, you must use the ServiceBuildInfo class.

The different fields of this class are not all valid. Their validity depends on the constructor used. Only application() is always valid. It is possible to know the valid fields via the value of creationType().

Definition at line 42 of file ServiceBuildInfo.h.

Constructor & Destructor Documentation

◆ ServiceBuildInfoBase() [1/9]

Arcane::ServiceBuildInfoBase::ServiceBuildInfoBase ( IApplication * app)
explicit

Service associated with an application IApplication.

The service will be of type ST_Application.

Definition at line 32 of file ServiceBuildInfo.cc.

References Arcane::ST_Application.

Referenced by ServiceBuildInfoBase(), ServiceBuildInfoBase(), ServiceBuildInfoBase(), and ServiceBuildInfoBase().

◆ ServiceBuildInfoBase() [2/9]

Arcane::ServiceBuildInfoBase::ServiceBuildInfoBase ( ISession * session)
explicit

Service associated with a session ISession.

The service will be of type ST_Session.

Definition at line 43 of file ServiceBuildInfo.cc.

References session(), and Arcane::ST_Session.

◆ ServiceBuildInfoBase() [3/9]

Arcane::ServiceBuildInfoBase::ServiceBuildInfoBase ( ISubDomain * sd)
explicit

Service associated with a subdomain ISubDomain.

The service will be of type ST_SubDomain. Also provides access to the mesh property (mesh())

Definition at line 93 of file ServiceBuildInfo.cc.

References Arcane::ST_SubDomain.

◆ ServiceBuildInfoBase() [4/9]

Arcane::ServiceBuildInfoBase::ServiceBuildInfoBase ( ISubDomain * sd,
IMesh * mesh )

Service associated with a mesh mesh.

The service will be of type ST_SubDomain.

Definition at line 63 of file ServiceBuildInfo.cc.

References mesh(), and ServiceBuildInfoBase().

◆ ServiceBuildInfoBase() [5/9]

Arcane::ServiceBuildInfoBase::ServiceBuildInfoBase ( const MeshHandle & mesh_handle)
explicit

Service associated with a mesh mesh_handle.

The service will be of type ST_SubDomain.

Definition at line 84 of file ServiceBuildInfo.cc.

References ServiceBuildInfoBase(), and subDomain().

◆ ServiceBuildInfoBase() [6/9]

Arcane::ServiceBuildInfoBase::ServiceBuildInfoBase ( ISubDomain * sd,
const MeshHandle & mesh_handle )

Service associated with a mesh mesh_handle.

The service will be of type ST_SubDomain.

Definition at line 72 of file ServiceBuildInfo.cc.

References Arcane::ST_SubDomain.

◆ ServiceBuildInfoBase() [7/9]

Arcane::ServiceBuildInfoBase::ServiceBuildInfoBase ( ICaseOptions * co)
explicit

Service associated with a dataset option co.

The service will be of type ST_CaseOption. Also provides access to the mesh (mesh()) and subdomain (subDomain()) properties.

Definition at line 118 of file ServiceBuildInfo.cc.

References ServiceBuildInfoBase(), and subDomain().

◆ ServiceBuildInfoBase() [8/9]

Arcane::ServiceBuildInfoBase::ServiceBuildInfoBase ( ISubDomain * sd,
ICaseOptions * co )

Service associated with a dataset option co.

The service will be of type ST_CaseOption. Also provides access to the mesh (mesh()) and subdomain (subDomain()) properties.

Definition at line 105 of file ServiceBuildInfo.cc.

References meshHandle(), and Arcane::ST_CaseOption.

◆ ServiceBuildInfoBase() [9/9]

Arcane::ServiceBuildInfoBase::ServiceBuildInfoBase ( IMesh * mesh)
explicit

Service associated with a mesh mesh.

The service will be of type ST_SubDomain.

Deprecated
Use ServiceBuildInfoBase(const MeshHandle&) instead.

Definition at line 54 of file ServiceBuildInfo.cc.

References mesh(), ServiceBuildInfoBase(), and subDomain().

Member Function Documentation

◆ application()

IApplication * Arcane::ServiceBuildInfoBase::application ( ) const
inline

Access to the associated IApplication.

The instance is never null regardless of the service.

Definition at line 133 of file ServiceBuildInfo.h.

◆ caseOptions()

ICaseOptions * Arcane::ServiceBuildInfoBase::caseOptions ( ) const
inline

Access to the associated ICaseOptions.

Precondition
creationType() & ST_CaseOption

Definition at line 168 of file ServiceBuildInfo.h.

◆ creationType()

eServiceType Arcane::ServiceBuildInfoBase::creationType ( ) const
inline

Type of service that can be created by this instance.

Definition at line 176 of file ServiceBuildInfo.h.

◆ mesh()

IMesh * Arcane::ServiceBuildInfoBase::mesh ( ) const

Access to the associated IMesh.

Precondition
creationType() & (ST_CaseOption|ST_SubDomain)

Definition at line 127 of file ServiceBuildInfo.cc.

Referenced by ServiceBuildInfoBase(), and ServiceBuildInfoBase().

◆ meshHandle()

const MeshHandle & Arcane::ServiceBuildInfoBase::meshHandle ( ) const
inline

Access to the associated mesh handle MeshHandle.

Precondition
creationType() & (ST_CaseOption|ST_SubDomain)

Definition at line 161 of file ServiceBuildInfo.h.

Referenced by ServiceBuildInfoBase().

◆ serviceParent()

IBase * Arcane::ServiceBuildInfoBase::serviceParent ( ) const
inline

Access to the parent instance that created this instance.

Definition at line 173 of file ServiceBuildInfo.h.

◆ session()

ISession * Arcane::ServiceBuildInfoBase::session ( ) const
inline

Access to the associated ISession.

Precondition
creationType() & (ST_CaseOption|ST_SubDomain|ST_Session)

Definition at line 140 of file ServiceBuildInfo.h.

Referenced by ServiceBuildInfoBase().

◆ subDomain()

ISubDomain * Arcane::ServiceBuildInfoBase::subDomain ( ) const
inline

Access to the associated ISubDomain.

Precondition
creationType() & (ST_CaseOption|ST_SubDomain)

Definition at line 147 of file ServiceBuildInfo.h.

Referenced by ServiceBuildInfoBase(), ServiceBuildInfoBase(), and ServiceBuildInfoBase().


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