STYLE: consistent brackets for Enum construction
This commit is contained in:
parent
d28267520f
commit
2413d4d898
@ -42,12 +42,12 @@ namespace functionObjects
|
||||
|
||||
const Foam::Enum<Foam::functionObjects::timeControl::controlMode>
|
||||
Foam::functionObjects::timeControl::controlModeNames_
|
||||
{
|
||||
({
|
||||
{ controlMode::TIME, "time" },
|
||||
{ controlMode::TRIGGER, "trigger" },
|
||||
{ controlMode::TIME_OR_TRIGGER, "timeOrTrigger" },
|
||||
{ controlMode::TIME_AND_TRIGGER, "timeAndTrigger" }
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Private Members * * * * * * * * * * * * * * //
|
||||
|
@ -40,10 +40,10 @@ Foam::word Foam::cloud::defaultName("defaultCloud");
|
||||
|
||||
const Foam::Enum<Foam::cloud::geometryType>
|
||||
Foam::cloud::geometryTypeNames
|
||||
{
|
||||
({
|
||||
{ geometryType::COORDINATES, "coordinates" },
|
||||
{ geometryType::POSITIONS, "positions" }
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
@ -35,7 +35,7 @@ Foam::PtrList<Foam::cellModel> Foam::cellModel::models_;
|
||||
Foam::List<const Foam::cellModel*> Foam::cellModel::modelPtrs_;
|
||||
|
||||
const Foam::Enum<Foam::cellModel::modelType> Foam::cellModel::modelNames
|
||||
{
|
||||
({
|
||||
{ modelType::UNKNOWN, "unknown" },
|
||||
{ modelType::HEX, "hex" },
|
||||
{ modelType::WEDGE, "wedge" },
|
||||
@ -44,7 +44,7 @@ const Foam::Enum<Foam::cellModel::modelType> Foam::cellModel::modelNames
|
||||
{ modelType::TET, "tet" },
|
||||
{ modelType::TETWEDGE, "tetWedge" },
|
||||
{ modelType::SPLITHEX, "splitHex" },
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
|
||||
|
@ -29,21 +29,21 @@ License
|
||||
|
||||
const Foam::Enum<Foam::bounds::normalBounding>
|
||||
Foam::bounds::normalBoundingNames
|
||||
{
|
||||
({
|
||||
{ normalBounding::ERROR, "error" },
|
||||
{ normalBounding::WARN, "warn" },
|
||||
{ normalBounding::CLAMP, "clamp" },
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
const Foam::Enum<Foam::bounds::repeatableBounding>
|
||||
Foam::bounds::repeatableBoundingNames
|
||||
{
|
||||
({
|
||||
{ repeatableBounding::ERROR, "error" },
|
||||
{ repeatableBounding::WARN, "warn" },
|
||||
{ repeatableBounding::CLAMP, "clamp" },
|
||||
{ repeatableBounding::REPEAT, "repeat" },
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -29,11 +29,11 @@ License
|
||||
|
||||
const Foam::Enum<Foam::parsing::errorType>
|
||||
Foam::parsing::errorNames
|
||||
{
|
||||
({
|
||||
{ errorType::GENERAL, "General error parsing" },
|
||||
{ errorType::RANGE, "Range error while parsing" },
|
||||
{ errorType::TRAILING, "Trailing content found parsing" },
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -32,12 +32,12 @@ const Foam::Enum
|
||||
Foam::vtk::fileTag
|
||||
>
|
||||
Foam::vtk::fileExtension
|
||||
{
|
||||
({
|
||||
{ fileTag::POLY_DATA, "vtp" },
|
||||
{ fileTag::UNSTRUCTURED_GRID, "vtu" },
|
||||
{ fileTag::MULTI_BLOCK, "vtm" },
|
||||
// { fileTag::COLLECTION, "pvd" },
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
const Foam::Enum
|
||||
@ -45,12 +45,12 @@ const Foam::Enum
|
||||
Foam::vtk::fileTag
|
||||
>
|
||||
Foam::vtk::fileContentVersions
|
||||
{
|
||||
({
|
||||
{ fileTag::POLY_DATA, "0.1" },
|
||||
{ fileTag::UNSTRUCTURED_GRID, "0.1" },
|
||||
{ fileTag::MULTI_BLOCK, "1.0" },
|
||||
// { fileTag::COLLECTION, "0.1" },
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
const Foam::Enum
|
||||
|
@ -33,7 +33,7 @@ const Foam::Enum
|
||||
Foam::vtk::fileWriter::outputState
|
||||
>
|
||||
Foam::vtk::fileWriter::stateNames
|
||||
{
|
||||
({
|
||||
{ outputState::CLOSED, "closed" },
|
||||
{ outputState::OPENED, "opened" },
|
||||
{ outputState::DECLARED, "declared" },
|
||||
@ -41,7 +41,7 @@ Foam::vtk::fileWriter::stateNames
|
||||
{ outputState::PIECE, "Piece" },
|
||||
{ outputState::CELL_DATA, "CellData" },
|
||||
{ outputState::POINT_DATA, "PointData" },
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||
|
@ -48,11 +48,11 @@ const Foam::Enum
|
||||
Foam::functionObjects::runTimeControls::averageCondition::windowType
|
||||
>
|
||||
Foam::functionObjects::runTimeControls::averageCondition::windowTypeNames
|
||||
{
|
||||
({
|
||||
{ windowType::NONE, "none" },
|
||||
{ windowType::APPROXIMATE, "approximate" },
|
||||
{ windowType::EXACT, "exact" }
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
Loading…
Reference in New Issue
Block a user