Index: /trunk/FACT++/src/logtime.cc
===================================================================
--- /trunk/FACT++/src/logtime.cc	(revision 10347)
+++ /trunk/FACT++/src/logtime.cc	(revision 10348)
@@ -6,76 +6,7 @@
 #include <iostream>
 
-class DimDescriptionService
-{
-    static int         fCount;
-    static DimService *fService;
-    static std::string fFormat;
-
-    std::string fFmt;
-
-public:
-    DimDescriptionService(const std::string &name, const std::string &format)
-    {
-        // FIXME: throw is DimServer::itsName==0
-
-        std::string n = std::string(DimServer::itsName)+"/SERVICE_DESC";
-
-        if (!fService)
-            fService = new DimService(n.c_str(), const_cast<char*>(""));
-
-        fCount++;
-
-        fFmt = name + '=' + format + '\n';
-
-        if (fFormat.find(fFmt)!=std::string::npos)
-            return;
-
-        fFormat += fFmt;
-
-        fService->setData(const_cast<char*>(fFormat.c_str()));
-        fService->updateService();
-
-    }
-    ~DimDescriptionService()
-    {
-        const size_t pos = fFormat.find(fFmt);
-        if (pos!=std::string::npos)
-            fFormat.replace(pos, fFmt.size(), "");
-
-        if (--fCount>0)
-            return;
-
-        delete fService;
-        fService=0;
-    }
-};
-
-class DimDescribedService : public DimDescriptionService, public DimService
-{
-public:
-    template<typename T>
-        DimDescribedService(const char *name, T &val, const char *desc)
-        : DimDescriptionService(name, desc), DimService(name, val)
-    {
-    }
-
-    DimDescribedService(const char *name, const char *val, const char *desc)
-        : DimDescriptionService(name, desc), DimService(name, const_cast<char*>(val)) { }
-
-    DimDescribedService(const char *name, char *format, void *structure, int size, const char *desc)
-        : DimDescriptionService(name, desc), DimService(name, format, structure, size)
-    {
-        // FIXME: compare number of ; with number of |
-    }
-};
-
-DimService *DimDescriptionService::fService = 0;
-int DimDescriptionService::fCount = 0;
-std::string DimDescriptionService::fFormat;
-
-
 int main(int, const char **)
 {
-    // We could use putenv to make the Configure class change the value...
+   // We could use putenv to make the Configure class change the value...
     setenv("DIM_DNS_NODE", "localhost", 0);
 
@@ -86,21 +17,4 @@
     std::cout << "Offering TIME/MESSAGE...\n" << std::endl;
 
-    short s;
-    int i;
-    long long ll;
-    float f;
-    DimDescribedService servt("TIME/TEST", "C:1;I:1;C", NULL, 0,
-                              "Char[c]:This is a char|   Int This is an int|String[s]:This is a string");
-
-    DimDescribedService servs("TIME/SHORT",     s,  "[a]");
-    DimDescribedService servx("TIME/LONGLONG",  ll, ": This is my long long");
-    DimDescribedService servi("TIME/INT",       i,  "MyInt{mi}");
-    DimDescribedService servf("TIME/FLOAT",     f,  "   MyFloat  :   This is my float");
-    DimDescribedService servc("TIME/TIME", const_cast<char*>(""), "MyTime[T]:This is my time");
-
-    DimCommand cmd("TIME/CMD", "I:2;F:2");
-
-    DimDescriptionService des("TIME/CMD", "range[addr]:From DAC to DAC|values[DAC]:DAC values to be set");
-
     // Setup a DimService called TIME/MESSAGE
     MessageDimTX msg("TIME");
@@ -109,13 +23,7 @@
         // Send current time
         msg.Message(Time().GetAsStr());
-//        servx.Update();
-        /*
-        servs.updateService();
-        servi.updateService();
-        servf.updateService();
-        servc.updateService();
-         */
+
         // wait approximately one second
-        usleep(100000);
+        usleep(1000000);
     }
 
