Philips Healthcare - C++ Coding Standard
Total Page:16
File Type:pdf, Size:1020Kb
Philips Healthcare - C++ Coding Standard Version head issued by the CCB Coding Standards Philips Healthcare title Table of Contents Change History..................................................................................................................................................1 Introduction........................................................................................................................................................8 Introduction........................................................................................................................................................9 Purpose....................................................................................................................................................9 Class Interface..................................................................................................................................................10 Rule INT#001.......................................................................................................................................10 Rule INT#002.......................................................................................................................................11 Rule INT#006.......................................................................................................................................11 Rule INT#008.......................................................................................................................................11 Rule INT#010.......................................................................................................................................12 Rule INT#011.......................................................................................................................................12 Rule INT#014.......................................................................................................................................13 Rule INT#015.......................................................................................................................................13 Rule INT#021.......................................................................................................................................13 Rule INT#022.......................................................................................................................................14 Rule INT#023.......................................................................................................................................14 Rule INT#026.......................................................................................................................................14 Rule INT#027.......................................................................................................................................16 Rule INT#028.......................................................................................................................................17 Rule INT#029.......................................................................................................................................17 Rule INT#030.......................................................................................................................................17 Comments.........................................................................................................................................................18 Rule COM#002.....................................................................................................................................18 Rule COM#003.....................................................................................................................................18 Rule COM#005.....................................................................................................................................18 Control Flow.....................................................................................................................................................19 Rule CFL#001.......................................................................................................................................19 Rule CFL#002.......................................................................................................................................19 Rule CFL#004.......................................................................................................................................20 Rule CFL#005.......................................................................................................................................20 Rule CFL#006.......................................................................................................................................21 Rule CFL#007.......................................................................................................................................21 Rule CFL#009.......................................................................................................................................21 Rule CFL#011.......................................................................................................................................23 Rule CFL#014.......................................................................................................................................23 Rule CFL#016.......................................................................................................................................23 Rule CFL#017.......................................................................................................................................24 Rule CFL#018.......................................................................................................................................24 Rule CFL#019.......................................................................................................................................25 Rule CFL#024.......................................................................................................................................25 Rule CFL#025.......................................................................................................................................25 Rule CFL#026.......................................................................................................................................26 Conversions......................................................................................................................................................28 Rule CON#001.....................................................................................................................................28 Rule CON#002.....................................................................................................................................28 Rule CON#004.....................................................................................................................................29 i title Table of Contents Conversions Rule CON#006.....................................................................................................................................30 Rule CON#007.....................................................................................................................................30 Rule CON#009.....................................................................................................................................31 Error Handling................................................................................................................................................32 Rule ERR#001......................................................................................................................................32 Rule ERR#003......................................................................................................................................32 Rule ERR#005......................................................................................................................................33 Rule ERR#006......................................................................................................................................33 Rule ERR#012......................................................................................................................................34 Rule ERR#014......................................................................................................................................35 Rule ERR#015......................................................................................................................................35 Rule ERR#016......................................................................................................................................36 Rule ERR#017......................................................................................................................................36 General..............................................................................................................................................................37 Rule GEN#002......................................................................................................................................37 Naming..............................................................................................................................................................38 Rule NAM#002.....................................................................................................................................38