oopapidocs  2.0
custType.cpp
00001 #include "custType.h"
00002 #include <qmap.h>
00003 
00004 /* File scope varaibles are not exported to other
00005     modules: */
00006 
00007 static const QString types = "Corporate,Individual,Educational,Government,Military";
00008 
00009 CustomerType::CustomerType(QString typestr) 
00010 {
00011     fromString(typestr);
00012 }
00013 
00014 const NameMap& CustomerType::nameMap() const 
00015 {
00016     static NameMap s_nameMap;
00017     static bool initialized = false;
00018     static const QStringList NAMES = types.split(",");
00019     return initMap(s_nameMap, NAMES, initialized);
00020 }
 All Classes Namespaces Functions Enumerations