[server] DBAgent: Introduce DBAGENT_TABLEPROFILE_INIT() macro to initialize DBAgent::TableProfile instances.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
[server] ArmNagiosNDOUtils: Use DBAGENT_TABLEPROFILE_INIT().

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
[server] DBClient: Use DBAGENT_TABLEPROFILE_INIT().

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
[server] DBClientAction: Use DBAGENT_TABLEPROFILE_INIT().

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
[server] DBClientConfig: Use DBAGENT_TABLEPROFILE_INIT().

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
[server] DBClientHatohol: Use DBAGENT_TABLEPROFILE_INIT().

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
[server] DBClientHost: Use DBAGENT_TABLEPROFILE_INIT().

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
[server] DBClientUser: Use DBAGENT_TABLEPROFILE_INIT().

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
[server] Utils: Add ARRAY_SIZE() macro.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
[server] HatoholException: Add HATOHOL_BUILD_{EXPECT,ASSERT}().

HATOHOL_BUILD_EXPECT(exp,val) emits build failure if compile-time
constant expression exp is not equal to val.  Otherwise, it returns
val.

HATOHOL_BUILD_ASSERT(cond) emits build failure if compile-time
constant expression cond is false.  Otherwise, it becomes void
statement.

Note: we may want to make these as "null" macros for production
builds.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
[server] DBAgent: Detect inconsistency of number of array elements and enum definitions.

Note that we do not detect inconsistency in tests.

Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
Merge pull request #364 from project-hatohol/array-size-check-20140811b

[server] DBAgent: Detect inconsistency of number of an array and enum for it.