MeVisLabToolboxReference
MeVisLab/Standard/Sources/ML/MLBase/mlStringList.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 //----------------------------------------------------------------------------------
00004 
00009 //
00010 // Defines the classes:
00011 // - StringList: A list class for items of type BaseItem. Each item has an id and
00012 //     a name, which can be an arbitrary string.
00013 // - StringListContainer: A container class for a StringList object.
00014 // All the functionality is already present in the classes BaseItem, BaseListTemplate
00015 // and ListContainerTemplate, so only runtime typing has to be defined.
00016 //----------------------------------------------------------------------------------
00017 
00018 
00019 
00020 #ifndef __mlStringList_H
00021 #define __mlStringList_H
00022 
00023 
00024 // ML-includes
00025 #ifndef __mlBaseInit_H
00026 #include "mlBaseInit.h"
00027 #endif
00028 #ifndef __mlModuleIncludes_H
00029 #include "mlModuleIncludes.h"
00030 #endif
00031 
00032 
00033 // Local includes
00034 #ifndef __mlListBase_H
00035 #include "mlListBase.h"
00036 #endif
00037 #ifndef __mlListContainer_H
00038 #include "mlListContainer.h"
00039 #endif
00040 
00041 
00042 
00043 ML_START_NAMESPACE
00044 
00045 
00046   
00047 // ------------------------------------------------------------------
00048 // Base object class StringList.
00049 // ------------------------------------------------------------------
00050 
00053 class MLBASEEXPORT StringList : public BaseListTemplate<BaseItem>
00054 {
00055 public:
00056 
00058   StringList () : BaseListTemplate<BaseItem>(true) {}
00059 
00060 private:
00061 
00063   ML_MODULE_CLASS_HEADER(StringList);
00064 
00065 };
00066 
00067 
00068 
00069 // ------------------------------------------------------------------
00070 // Base object class StringListContainer 
00071 // ------------------------------------------------------------------
00072 
00075 class MLBASEEXPORT StringListContainer : public ListContainerTemplate<StringList>
00076 {
00077 public:
00078 
00080   StringListContainer () : ListContainerTemplate<StringList>(0, 0) {}
00081 
00082 
00083 private:
00084 
00086   ML_MODULE_CLASS_HEADER(StringListContainer);
00087 
00088 };
00089 
00090 
00091 ML_END_NAMESPACE
00092 
00093 
00094 #endif // __mlStringList_H