The solicitor of said court shall be at least twenty-one years of age, must be a resident of the county and a practicing attorney for three years preceding his appointment or election. In addition to his duties as prosecuting attorney in said court, he shall represent the State in all criminal cases carried to the superior court by certiorari, and from thence to the Supreme Court by bill of exceptions, and in cases carried direct to the Supreme Court by writ of error. Before entering upon the duties of his office, he shall give bond and security, to be approved by the judge of said court, in the sum of five hundred dollars, and take and subscribe an oath to faithfully and impartially perform the duties of his office. The judge of said court shall have authority to appoint a solicitor pro tem to act whenever the solicitor of said court is absent or disqualified.