Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,18 @@ case class ComponentParameters (
Some(
s"""|\\brief Called whenever parameters are loaded
|
|This function does nothing by default. You may override it.
|By default this notifies the component of each parameter via
|parameterUpdated. You may override it, for example to suppress
|notification on load.
|"""
),
"parametersLoaded",
Nil,
CppDoc.Type("void"),
lines("// Do nothing by default"),
if sortedParams.isEmpty then lines("// No parameters")
Comment thread
bocchino marked this conversation as resolved.
Outdated
else sortedParams.flatMap((_, param) =>
lines(s"this->parameterUpdated(${paramIdConstantName(param.getName)});")
),
CppDoc.Function.Virtual
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3492,7 +3492,12 @@ void ActiveExternalParamsComponentBase ::
void ActiveExternalParamsComponentBase ::
parametersLoaded()
{
// Do nothing by default
this->parameterUpdated(PARAMID_PARAMI32EXT);
Comment thread
bocchino marked this conversation as resolved.
Outdated
this->parameterUpdated(PARAMID_PARAMF64EXT);
this->parameterUpdated(PARAMID_PARAMSTRINGEXT);
this->parameterUpdated(PARAMID_PARAMENUMEXT);
this->parameterUpdated(PARAMID_PARAMARRAYEXT);
this->parameterUpdated(PARAMID_PARAMSTRUCTEXT);
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,9 @@ class ActiveExternalParamsComponentBase :

//! \brief Called whenever parameters are loaded
//!
//! This function does nothing by default. You may override it.
//! By default this notifies the component of each parameter via
//! parameterUpdated. You may override it, for example to suppress
//! notification on load.
virtual void parametersLoaded();

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3438,7 +3438,12 @@ void ActiveParamsComponentBase ::
void ActiveParamsComponentBase ::
parametersLoaded()
{
// Do nothing by default
this->parameterUpdated(PARAMID_PARAMU32);
this->parameterUpdated(PARAMID_PARAMF64);
this->parameterUpdated(PARAMID_PARAMSTRING);
this->parameterUpdated(PARAMID_PARAMENUM);
this->parameterUpdated(PARAMID_PARAMARRAY);
this->parameterUpdated(PARAMID_PARAMSTRUCT);
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,9 @@ class ActiveParamsComponentBase :

//! \brief Called whenever parameters are loaded
//!
//! This function does nothing by default. You may override it.
//! By default this notifies the component of each parameter via
//! parameterUpdated. You may override it, for example to suppress
//! notification on load.
virtual void parametersLoaded();

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7117,7 +7117,18 @@ void ActiveSerialComponentBase ::
void ActiveSerialComponentBase ::
parametersLoaded()
{
// Do nothing by default
this->parameterUpdated(PARAMID_PARAMU32);
this->parameterUpdated(PARAMID_PARAMF64);
this->parameterUpdated(PARAMID_PARAMSTRING);
this->parameterUpdated(PARAMID_PARAMENUM);
this->parameterUpdated(PARAMID_PARAMARRAY);
this->parameterUpdated(PARAMID_PARAMSTRUCT);
this->parameterUpdated(PARAMID_PARAMI32EXT);
this->parameterUpdated(PARAMID_PARAMF64EXT);
this->parameterUpdated(PARAMID_PARAMSTRINGEXT);
this->parameterUpdated(PARAMID_PARAMENUMEXT);
this->parameterUpdated(PARAMID_PARAMARRAYEXT);
this->parameterUpdated(PARAMID_PARAMSTRUCTEXT);
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2550,7 +2550,9 @@ class ActiveSerialComponentBase :

//! \brief Called whenever parameters are loaded
//!
//! This function does nothing by default. You may override it.
//! By default this notifies the component of each parameter via
//! parameterUpdated. You may override it, for example to suppress
//! notification on load.
virtual void parametersLoaded();

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6949,7 +6949,18 @@ namespace M {
void ActiveTestComponentBase ::
parametersLoaded()
{
// Do nothing by default
this->parameterUpdated(PARAMID_PARAMU32);
this->parameterUpdated(PARAMID_PARAMF64);
this->parameterUpdated(PARAMID_PARAMSTRING);
this->parameterUpdated(PARAMID_PARAMENUM);
this->parameterUpdated(PARAMID_PARAMARRAY);
this->parameterUpdated(PARAMID_PARAMSTRUCT);
this->parameterUpdated(PARAMID_PARAMI32EXT);
this->parameterUpdated(PARAMID_PARAMF64EXT);
this->parameterUpdated(PARAMID_PARAMSTRINGEXT);
this->parameterUpdated(PARAMID_PARAMENUMEXT);
this->parameterUpdated(PARAMID_PARAMARRAYEXT);
this->parameterUpdated(PARAMID_PARAMSTRUCTEXT);
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2490,7 +2490,9 @@ namespace M {

//! \brief Called whenever parameters are loaded
//!
//! This function does nothing by default. You may override it.
//! By default this notifies the component of each parameter via
//! parameterUpdated. You may override it, for example to suppress
//! notification on load.
virtual void parametersLoaded();

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2538,7 +2538,12 @@ void PassiveExternalParamsComponentBase ::
void PassiveExternalParamsComponentBase ::
parametersLoaded()
{
// Do nothing by default
this->parameterUpdated(PARAMID_PARAMI32EXT);
this->parameterUpdated(PARAMID_PARAMF64EXT);
this->parameterUpdated(PARAMID_PARAMSTRINGEXT);
this->parameterUpdated(PARAMID_PARAMENUMEXT);
this->parameterUpdated(PARAMID_PARAMARRAYEXT);
this->parameterUpdated(PARAMID_PARAMSTRUCTEXT);
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,9 @@ class PassiveExternalParamsComponentBase :

//! \brief Called whenever parameters are loaded
//!
//! This function does nothing by default. You may override it.
//! By default this notifies the component of each parameter via
//! parameterUpdated. You may override it, for example to suppress
//! notification on load.
virtual void parametersLoaded();

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2484,7 +2484,12 @@ void PassiveParamsComponentBase ::
void PassiveParamsComponentBase ::
parametersLoaded()
{
// Do nothing by default
this->parameterUpdated(PARAMID_PARAMU32);
this->parameterUpdated(PARAMID_PARAMF64);
this->parameterUpdated(PARAMID_PARAMSTRING);
this->parameterUpdated(PARAMID_PARAMENUM);
this->parameterUpdated(PARAMID_PARAMARRAY);
this->parameterUpdated(PARAMID_PARAMSTRUCT);
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,9 @@ class PassiveParamsComponentBase :

//! \brief Called whenever parameters are loaded
//!
//! This function does nothing by default. You may override it.
//! By default this notifies the component of each parameter via
//! parameterUpdated. You may override it, for example to suppress
//! notification on load.
virtual void parametersLoaded();

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5023,7 +5023,18 @@ void PassiveSerialComponentBase ::
void PassiveSerialComponentBase ::
parametersLoaded()
{
// Do nothing by default
this->parameterUpdated(PARAMID_PARAMU32);
this->parameterUpdated(PARAMID_PARAMF64);
this->parameterUpdated(PARAMID_PARAMSTRING);
this->parameterUpdated(PARAMID_PARAMENUM);
this->parameterUpdated(PARAMID_PARAMARRAY);
this->parameterUpdated(PARAMID_PARAMSTRUCT);
this->parameterUpdated(PARAMID_PARAMI32EXT);
this->parameterUpdated(PARAMID_PARAMF64EXT);
this->parameterUpdated(PARAMID_PARAMSTRINGEXT);
this->parameterUpdated(PARAMID_PARAMENUMEXT);
this->parameterUpdated(PARAMID_PARAMARRAYEXT);
this->parameterUpdated(PARAMID_PARAMSTRUCTEXT);
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1904,7 +1904,9 @@ class PassiveSerialComponentBase :

//! \brief Called whenever parameters are loaded
//!
//! This function does nothing by default. You may override it.
//! By default this notifies the component of each parameter via
//! parameterUpdated. You may override it, for example to suppress
//! notification on load.
virtual void parametersLoaded();

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5203,7 +5203,18 @@ void PassiveTestComponentBase ::
void PassiveTestComponentBase ::
parametersLoaded()
{
// Do nothing by default
this->parameterUpdated(PARAMID_PARAMU32);
this->parameterUpdated(PARAMID_PARAMF64);
this->parameterUpdated(PARAMID_PARAMSTRING);
this->parameterUpdated(PARAMID_PARAMENUM);
this->parameterUpdated(PARAMID_PARAMARRAY);
this->parameterUpdated(PARAMID_PARAMSTRUCT);
this->parameterUpdated(PARAMID_PARAMI32EXT);
this->parameterUpdated(PARAMID_PARAMF64EXT);
this->parameterUpdated(PARAMID_PARAMSTRINGEXT);
this->parameterUpdated(PARAMID_PARAMENUMEXT);
this->parameterUpdated(PARAMID_PARAMARRAYEXT);
this->parameterUpdated(PARAMID_PARAMSTRUCTEXT);
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1967,7 +1967,9 @@ class PassiveTestComponentBase :

//! \brief Called whenever parameters are loaded
//!
//! This function does nothing by default. You may override it.
//! By default this notifies the component of each parameter via
//! parameterUpdated. You may override it, for example to suppress
//! notification on load.
virtual void parametersLoaded();

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3492,7 +3492,12 @@ void QueuedExternalParamsComponentBase ::
void QueuedExternalParamsComponentBase ::
parametersLoaded()
{
// Do nothing by default
this->parameterUpdated(PARAMID_PARAMI32EXT);
this->parameterUpdated(PARAMID_PARAMF64EXT);
this->parameterUpdated(PARAMID_PARAMSTRINGEXT);
this->parameterUpdated(PARAMID_PARAMENUMEXT);
this->parameterUpdated(PARAMID_PARAMARRAYEXT);
this->parameterUpdated(PARAMID_PARAMSTRUCTEXT);
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,9 @@ class QueuedExternalParamsComponentBase :

//! \brief Called whenever parameters are loaded
//!
//! This function does nothing by default. You may override it.
//! By default this notifies the component of each parameter via
//! parameterUpdated. You may override it, for example to suppress
//! notification on load.
virtual void parametersLoaded();

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3438,7 +3438,12 @@ void QueuedParamsComponentBase ::
void QueuedParamsComponentBase ::
parametersLoaded()
{
// Do nothing by default
this->parameterUpdated(PARAMID_PARAMU32);
this->parameterUpdated(PARAMID_PARAMF64);
this->parameterUpdated(PARAMID_PARAMSTRING);
this->parameterUpdated(PARAMID_PARAMENUM);
this->parameterUpdated(PARAMID_PARAMARRAY);
this->parameterUpdated(PARAMID_PARAMSTRUCT);
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,9 @@ class QueuedParamsComponentBase :

//! \brief Called whenever parameters are loaded
//!
//! This function does nothing by default. You may override it.
//! By default this notifies the component of each parameter via
//! parameterUpdated. You may override it, for example to suppress
//! notification on load.
virtual void parametersLoaded();

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7117,7 +7117,18 @@ void QueuedSerialComponentBase ::
void QueuedSerialComponentBase ::
parametersLoaded()
{
// Do nothing by default
this->parameterUpdated(PARAMID_PARAMU32);
this->parameterUpdated(PARAMID_PARAMF64);
this->parameterUpdated(PARAMID_PARAMSTRING);
this->parameterUpdated(PARAMID_PARAMENUM);
this->parameterUpdated(PARAMID_PARAMARRAY);
this->parameterUpdated(PARAMID_PARAMSTRUCT);
this->parameterUpdated(PARAMID_PARAMI32EXT);
this->parameterUpdated(PARAMID_PARAMF64EXT);
this->parameterUpdated(PARAMID_PARAMSTRINGEXT);
this->parameterUpdated(PARAMID_PARAMENUMEXT);
this->parameterUpdated(PARAMID_PARAMARRAYEXT);
this->parameterUpdated(PARAMID_PARAMSTRUCTEXT);
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2550,7 +2550,9 @@ class QueuedSerialComponentBase :

//! \brief Called whenever parameters are loaded
//!
//! This function does nothing by default. You may override it.
//! By default this notifies the component of each parameter via
//! parameterUpdated. You may override it, for example to suppress
//! notification on load.
virtual void parametersLoaded();

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6947,7 +6947,18 @@ void QueuedTestComponentBase ::
void QueuedTestComponentBase ::
parametersLoaded()
{
// Do nothing by default
this->parameterUpdated(PARAMID_PARAMU32);
this->parameterUpdated(PARAMID_PARAMF64);
this->parameterUpdated(PARAMID_PARAMSTRING);
this->parameterUpdated(PARAMID_PARAMENUM);
this->parameterUpdated(PARAMID_PARAMARRAY);
this->parameterUpdated(PARAMID_PARAMSTRUCT);
this->parameterUpdated(PARAMID_PARAMI32EXT);
this->parameterUpdated(PARAMID_PARAMF64EXT);
this->parameterUpdated(PARAMID_PARAMSTRINGEXT);
this->parameterUpdated(PARAMID_PARAMENUMEXT);
this->parameterUpdated(PARAMID_PARAMARRAYEXT);
this->parameterUpdated(PARAMID_PARAMSTRUCTEXT);
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2488,7 +2488,9 @@ class QueuedTestComponentBase :

//! \brief Called whenever parameters are loaded
//!
//! This function does nothing by default. You may override it.
//! By default this notifies the component of each parameter via
//! parameterUpdated. You may override it, for example to suppress
//! notification on load.
virtual void parametersLoaded();

protected:
Expand Down