what are the types of building codes and whae their functions?

http://en.wikipedia.org/wiki/Building_code