STYLE: consistent brackets for Enum construction

This commit is contained in:
Mark Olesen
2019-05-31 10:44:23 +02:00
committed by Andrew Heather
parent d28267520f
commit 2413d4d898
8 changed files with 20 additions and 20 deletions

View File

@ -42,12 +42,12 @@ namespace functionObjects
const Foam::Enum<Foam::functionObjects::timeControl::controlMode> const Foam::Enum<Foam::functionObjects::timeControl::controlMode>
Foam::functionObjects::timeControl::controlModeNames_ Foam::functionObjects::timeControl::controlModeNames_
{ ({
{ controlMode::TIME, "time" }, { controlMode::TIME, "time" },
{ controlMode::TRIGGER, "trigger" }, { controlMode::TRIGGER, "trigger" },
{ controlMode::TIME_OR_TRIGGER, "timeOrTrigger" }, { controlMode::TIME_OR_TRIGGER, "timeOrTrigger" },
{ controlMode::TIME_AND_TRIGGER, "timeAndTrigger" } { controlMode::TIME_AND_TRIGGER, "timeAndTrigger" }
}; });
// * * * * * * * * * * * * * * * Private Members * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Private Members * * * * * * * * * * * * * * //

View File

@ -40,10 +40,10 @@ Foam::word Foam::cloud::defaultName("defaultCloud");
const Foam::Enum<Foam::cloud::geometryType> const Foam::Enum<Foam::cloud::geometryType>
Foam::cloud::geometryTypeNames Foam::cloud::geometryTypeNames
{ ({
{ geometryType::COORDINATES, "coordinates" }, { geometryType::COORDINATES, "coordinates" },
{ geometryType::POSITIONS, "positions" } { geometryType::POSITIONS, "positions" }
}; });
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -35,7 +35,7 @@ Foam::PtrList<Foam::cellModel> Foam::cellModel::models_;
Foam::List<const Foam::cellModel*> Foam::cellModel::modelPtrs_; Foam::List<const Foam::cellModel*> Foam::cellModel::modelPtrs_;
const Foam::Enum<Foam::cellModel::modelType> Foam::cellModel::modelNames const Foam::Enum<Foam::cellModel::modelType> Foam::cellModel::modelNames
{ ({
{ modelType::UNKNOWN, "unknown" }, { modelType::UNKNOWN, "unknown" },
{ modelType::HEX, "hex" }, { modelType::HEX, "hex" },
{ modelType::WEDGE, "wedge" }, { modelType::WEDGE, "wedge" },
@ -44,7 +44,7 @@ const Foam::Enum<Foam::cellModel::modelType> Foam::cellModel::modelNames
{ modelType::TET, "tet" }, { modelType::TET, "tet" },
{ modelType::TETWEDGE, "tetWedge" }, { modelType::TETWEDGE, "tetWedge" },
{ modelType::SPLITHEX, "splitHex" }, { modelType::SPLITHEX, "splitHex" },
}; });
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * // // * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //

View File

@ -29,21 +29,21 @@ License
const Foam::Enum<Foam::bounds::normalBounding> const Foam::Enum<Foam::bounds::normalBounding>
Foam::bounds::normalBoundingNames Foam::bounds::normalBoundingNames
{ ({
{ normalBounding::ERROR, "error" }, { normalBounding::ERROR, "error" },
{ normalBounding::WARN, "warn" }, { normalBounding::WARN, "warn" },
{ normalBounding::CLAMP, "clamp" }, { normalBounding::CLAMP, "clamp" },
}; });
const Foam::Enum<Foam::bounds::repeatableBounding> const Foam::Enum<Foam::bounds::repeatableBounding>
Foam::bounds::repeatableBoundingNames Foam::bounds::repeatableBoundingNames
{ ({
{ repeatableBounding::ERROR, "error" }, { repeatableBounding::ERROR, "error" },
{ repeatableBounding::WARN, "warn" }, { repeatableBounding::WARN, "warn" },
{ repeatableBounding::CLAMP, "clamp" }, { repeatableBounding::CLAMP, "clamp" },
{ repeatableBounding::REPEAT, "repeat" }, { repeatableBounding::REPEAT, "repeat" },
}; });
// ************************************************************************* // // ************************************************************************* //

View File

@ -29,11 +29,11 @@ License
const Foam::Enum<Foam::parsing::errorType> const Foam::Enum<Foam::parsing::errorType>
Foam::parsing::errorNames Foam::parsing::errorNames
{ ({
{ errorType::GENERAL, "General error parsing" }, { errorType::GENERAL, "General error parsing" },
{ errorType::RANGE, "Range error while parsing" }, { errorType::RANGE, "Range error while parsing" },
{ errorType::TRAILING, "Trailing content found parsing" }, { errorType::TRAILING, "Trailing content found parsing" },
}; });
// ************************************************************************* // // ************************************************************************* //

View File

@ -32,12 +32,12 @@ const Foam::Enum
Foam::vtk::fileTag Foam::vtk::fileTag
> >
Foam::vtk::fileExtension Foam::vtk::fileExtension
{ ({
{ fileTag::POLY_DATA, "vtp" }, { fileTag::POLY_DATA, "vtp" },
{ fileTag::UNSTRUCTURED_GRID, "vtu" }, { fileTag::UNSTRUCTURED_GRID, "vtu" },
{ fileTag::MULTI_BLOCK, "vtm" }, { fileTag::MULTI_BLOCK, "vtm" },
// { fileTag::COLLECTION, "pvd" }, // { fileTag::COLLECTION, "pvd" },
}; });
const Foam::Enum const Foam::Enum
@ -45,12 +45,12 @@ const Foam::Enum
Foam::vtk::fileTag Foam::vtk::fileTag
> >
Foam::vtk::fileContentVersions Foam::vtk::fileContentVersions
{ ({
{ fileTag::POLY_DATA, "0.1" }, { fileTag::POLY_DATA, "0.1" },
{ fileTag::UNSTRUCTURED_GRID, "0.1" }, { fileTag::UNSTRUCTURED_GRID, "0.1" },
{ fileTag::MULTI_BLOCK, "1.0" }, { fileTag::MULTI_BLOCK, "1.0" },
// { fileTag::COLLECTION, "0.1" }, // { fileTag::COLLECTION, "0.1" },
}; });
const Foam::Enum const Foam::Enum

View File

@ -33,7 +33,7 @@ const Foam::Enum
Foam::vtk::fileWriter::outputState Foam::vtk::fileWriter::outputState
> >
Foam::vtk::fileWriter::stateNames Foam::vtk::fileWriter::stateNames
{ ({
{ outputState::CLOSED, "closed" }, { outputState::CLOSED, "closed" },
{ outputState::OPENED, "opened" }, { outputState::OPENED, "opened" },
{ outputState::DECLARED, "declared" }, { outputState::DECLARED, "declared" },
@ -41,7 +41,7 @@ Foam::vtk::fileWriter::stateNames
{ outputState::PIECE, "Piece" }, { outputState::PIECE, "Piece" },
{ outputState::CELL_DATA, "CellData" }, { outputState::CELL_DATA, "CellData" },
{ outputState::POINT_DATA, "PointData" }, { outputState::POINT_DATA, "PointData" },
}; });
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //

View File

@ -48,11 +48,11 @@ const Foam::Enum
Foam::functionObjects::runTimeControls::averageCondition::windowType Foam::functionObjects::runTimeControls::averageCondition::windowType
> >
Foam::functionObjects::runTimeControls::averageCondition::windowTypeNames Foam::functionObjects::runTimeControls::averageCondition::windowTypeNames
{ ({
{ windowType::NONE, "none" }, { windowType::NONE, "none" },
{ windowType::APPROXIMATE, "approximate" }, { windowType::APPROXIMATE, "approximate" },
{ windowType::EXACT, "exact" } { windowType::EXACT, "exact" }
}; });
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //