(a) Unless otherwise stated, the provisions of this chapter shall be enforced by the city manager or his designees. All references in this chapter to an enforcement officer are references to the city manager or his designees in the absence of provisions to the contrary. (b) The enforcement officer shall have the following powers and duties: (1) To inspect all buildings or structures being erected or altered as frequently as may be necessary to ensure compliance with the city ordinances or codes. (2) To make or cause to be made, at any reasonable hour, entries into buildings or premises where the work of altering, repairing or constructing is going on, for the purpose of making inspections. (3) To issue written stop work orders on construction, alteration or repair of buildings in the city when such work is being done in violation of any provision of this chapter.