misc: Rename Enums namespace as enums

As part of recent decisions regarding namespace
naming conventions, all namespaces will be changed
to snake case.

::Enums became ::enums.

Change-Id: I39b5fb48817ad16abbac92f6254284b37fc90c40
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45420
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Daniel R. Carvalho
2021-05-06 16:18:58 -03:00
committed by Daniel Carvalho
parent 06fb0753fe
commit 4dd099ba3d
77 changed files with 384 additions and 381 deletions

View File

@@ -47,10 +47,10 @@
#endif
std::unique_ptr<ImgWriter>
createImgWriter(Enums::ImageFormat type, const FrameBuffer *fb)
createImgWriter(enums::ImageFormat type, const FrameBuffer *fb)
{
switch (type) {
case Enums::Auto:
case enums::Auto:
// The Auto option allows gem5 to choose automatically the
// writer type, and it will choose for the best fit in
// performance.
@@ -59,10 +59,10 @@ createImgWriter(Enums::ImageFormat type, const FrameBuffer *fb)
GEM5_FALLTHROUGH;
#if HAVE_PNG
case Enums::Png:
case enums::Png:
return std::unique_ptr<PngWriter>(new PngWriter(fb));
#endif
case Enums::Bitmap:
case enums::Bitmap:
return std::unique_ptr<BmpWriter>(new BmpWriter(fb));
default:
warn("Invalid Image Type specified, defaulting to Bitmap\n");

View File

@@ -85,6 +85,6 @@ class ImgWriter
* @return smart pointer to the allocated Image Writer
*/
std::unique_ptr<ImgWriter>
createImgWriter(Enums::ImageFormat type, const FrameBuffer *fb);
createImgWriter(enums::ImageFormat type, const FrameBuffer *fb);
#endif //__BASE_IMGWRITER_HH__

View File

@@ -236,7 +236,7 @@ class VncInput : public SimObject
std::unique_ptr<ImgWriter> captureImage;
/** image format */
Enums::ImageFormat imgFormat;
enums::ImageFormat imgFormat;
/** Captures the current frame buffer to a file */
void captureFrameBuffer();