A ControlParameters holds a Name and other fields for a ControlParameters which is used, for example, in the command interest to register a prefix with a forwarder.
More...
#include <control-parameters.hpp>
A ControlParameters holds a Name and other fields for a ControlParameters which is used, for example, in the command interest to register a prefix with a forwarder.
Set controlParametersLite to point to the components in this ControlParameters, without copying any memory.
WARNING: The resulting pointers in controlParametersLite are invalid after a further use of this object which could reallocate memory.
- Parameters
-
controlParametersLite | The ControlParametersLite object which receives the values. where the name components arrays are already allocated. |
bool ndn::ControlParameters::getHasName |
( |
| ) |
const |
|
inline |
Check if the name is specified.
- Returns
- True if the name is specified, false if not.
const Name& ndn::ControlParameters::getName |
( |
| ) |
const |
|
inline |
Get the name, if specified.
- Returns
- The Name. This is only meaningful if getHasName() is true.
Clear this ControlParameters, and set the values by copying from controlParametersLite.
- Parameters
-
Set the cost value.
- Parameters
-
cost | The new cost value, or -1 for not specified. |
- Returns
- This ControlParameters so that you can chain calls to update values.
Set the expiration period.
- Parameters
-
expirationPeriod | The expiration period in milliseconds, or null for not specified. |
- Returns
- This ControlParameters so that you can chain calls to update values.
Set the Face ID.
- Parameters
-
faceId | The new face ID, or -1 for not specified. |
- Returns
- This ControlParameters so that you can chain calls to update values.
Set the ForwardingFlags object to a copy of forwardingFlags.
You can use getForwardingFlags() and change the existing ForwardingFlags object.
- Parameters
-
forwardingFlags | The new cost value, or null for not specified. |
- Returns
- This ControlParameters so that you can chain calls to update values.
void ndn::ControlParameters::setHasName |
( |
bool |
hasName | ) |
|
|
inline |
Set the flag for whether the name is specified.
Note that setName automatically calls setHasName(true).
- Parameters
-
hasName | True if the name is specified, false if not. |
ControlParameters& ndn::ControlParameters::setLocalControlFeature |
( |
int |
localControlFeature | ) |
|
|
inline |
Set the local control feature value.
- Parameters
-
localControlFeature | The new local control feature value, or -1 for not specified. |
- Returns
- This ControlParameters so that you can chain calls to update values.
Set the name.
This also calls setHasName(true).
- Parameters
-
name | The name. This makes a copy of the name. If the name is not specified, call setHasName(false). |
- Returns
- This ControlParameters so that you can chain calls to update values.
Set the origin value.
- Parameters
-
origin | The new origin value, or -1 for not specified. |
- Returns
- This ControlParameters so that you can chain calls to update values.
Set the strategy to a copy of the given Name.
- Parameters
-
strategy | The Name to copy, or an empty Name if not specified. |
- Returns
- This ControlParameters so that you can chain calls to update values.
Set the URI.
- Parameters
-
uri | The new uri, or an empty string for not specified. |
- Returns
- This ControlParameters so that you can chain calls to update values.
The documentation for this class was generated from the following files: