add messageTypeCount (=4 by default) for messageTypeName.

This commit is contained in:
Guobao Shen
2011-09-26 15:08:33 -04:00
parent 93ec1d1450
commit ced144c4c4
2 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,8 @@
#include <pv/requester.h>
namespace epics { namespace pvData {
static std::string typeName[] = {
const size_t messageTypeCount = 4;
static std::string typeName[messageTypeCount] = {
String("info"),
String("warning"),
String("error"),
@@ -16,5 +17,4 @@ static std::string typeName[] = {
};
StringArray messageTypeName = typeName;
}}

View File

@@ -19,7 +19,7 @@ enum MessageType {
};
extern StringArray messageTypeName;
extern const size_t messageTypeCount;
class Requester {
public:
POINTER_DEFINITIONS(Requester);