Revision: 41633
http://brlcad.svn.sourceforge.net/brlcad/?rev=41633&view=rev
Author: davidloman
Date: 2010-12-15 19:31:33 +0000 (Wed, 15 Dec 2010)
Log Message:
-----------
Make ClientCmd related headers public headers
Modified Paths:
--------------
rt^3/trunk/src/GS/CMakeLists.txt
Added Paths:
-----------
rt^3/trunk/include/AbstractClientCmd.h
rt^3/trunk/include/ClientCmdRegistry.h
Removed Paths:
-------------
rt^3/trunk/src/GS/cmds/AbstractClientCmd.h
rt^3/trunk/src/GS/cmds/ClientCmdRegistry.h
Copied: rt^3/trunk/include/AbstractClientCmd.h (from rev 41632,
rt^3/trunk/src/GS/cmds/AbstractClientCmd.h)
===================================================================
--- rt^3/trunk/include/AbstractClientCmd.h (rev 0)
+++ rt^3/trunk/include/AbstractClientCmd.h 2010-12-15 19:31:33 UTC (rev
41633)
@@ -0,0 +1,56 @@
+/* A B S T R A C T C L I E N T C M D . H
+ * BRL-CAD
+ *
+ * Copyright (c) 2010 United States Government as represented by
+ * the U.S. Army Research Laboratory.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this file; see the file named COPYING for more
+ * information.
+ */
+/** @file AbstractClientCmd.h
+ * AbstractClientCmd.h
+ *
+ */
+
+#ifndef __ABSTRACTCLIENTCMD_H__
+#define __ABSTRACTCLIENTCMD_H__
+
+#include <QtCore/QString>
+
+class AbstractClientCmd {
+public:
+ virtual ~AbstractClientCmd();
+ bool exec(QString args[]);
+
+ QString getCmd();
+protected:
+ AbstractClientCmd(QString cmd);
+ AbstractClientCmd(AbstractClientCmd* acCmd);
+
+ virtual bool _exec(QString args[]) = 0;
+
+private:
+ QString cmd;
+};
+
+#endif /* __ABSTRACTCLIENTCMD_H__ */
+
+/*
+ * Local Variables:
+ * tab-width: 8
+ * mode: C
+ * indent-tabs-mode: t
+ * c-file-style: "stroustrup"
+ * End:
+ * ex: shiftwidth=4 tabstop=8
+ */
Copied: rt^3/trunk/include/ClientCmdRegistry.h (from rev 41632,
rt^3/trunk/src/GS/cmds/ClientCmdRegistry.h)
===================================================================
--- rt^3/trunk/include/ClientCmdRegistry.h (rev 0)
+++ rt^3/trunk/include/ClientCmdRegistry.h 2010-12-15 19:31:33 UTC (rev
41633)
@@ -0,0 +1,75 @@
+/* C L I E N T C M D R E G I S T R Y . H
+ * BRL-CAD
+ *
+ * Copyright (c) 2010 United States Government as represented by
+ * the U.S. Army Research Laboratory.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this file; see the file named COPYING for more
+ * information.
+ */
+/** @file ClientCmdRegistry.h
+ *
+ * Brief description
+ *
+ */
+
+
+#ifndef __CLIENTCMDREGISTRY_H__
+#define __CLIENTCMDREGISTRY_H__
+
+#include "AbstractClientCmd.h"
+#include "Logger.h"
+
+#include <QtCore/QString>
+#include <QtCore/QMap>
+#include <QtCore/QList>
+#include <QtCore/QMutex>
+
+class ClientCmdRegistry
+{
+public:
+ static ClientCmdRegistry* getInstance();
+ virtual ~ClientCmdRegistry();
+
+ bool registerCmd(AbstractClientCmd* cmd);
+ AbstractClientCmd* getCmd(QString cmd);
+
+ QList<QString>* getListOfCmds();
+
+private:
+ static ClientCmdRegistry* pInstance;
+ ClientCmdRegistry();
+
+ static void registerInternalCmds();
+
+ Logger* log;
+
+ QMutex mapLock;
+ QMap<QString,AbstractClientCmd*>* cmdMap;
+
+ /* Disable copy cstr and =operator */
+ ClientCmdRegistry(ClientCmdRegistry const&){};
+ ClientCmdRegistry& operator=(ClientCmdRegistry const&){};
+};
+
+#endif /* __CLIENTCMDREGISTRY_H__ */
+
+/*
+ * Local Variables:
+ * tab-width: 8
+ * mode: C
+ * indent-tabs-mode: t
+ * c-file-style: "stroustrup"
+ * End:
+ * ex: shiftwidth=4 tabstop=8
+ */
Modified: rt^3/trunk/src/GS/CMakeLists.txt
===================================================================
--- rt^3/trunk/src/GS/CMakeLists.txt 2010-12-15 19:15:50 UTC (rev 41632)
+++ rt^3/trunk/src/GS/CMakeLists.txt 2010-12-15 19:31:33 UTC (rev 41633)
@@ -69,6 +69,8 @@
IDataSource.h
FileDataSource.h
DbObject.h
+ ClientCmdRegistry.h
+ AbstractClientCmd.h
)
#Set NOINST headers
@@ -76,8 +78,6 @@
DbObjectManifest.h
GeometryProcessor.h
GSClient.h
- cmds/ClientCmdRegistry.h
- cmds/AbstractClientCmd.h
)
#Set QT INST headers
Deleted: rt^3/trunk/src/GS/cmds/AbstractClientCmd.h
===================================================================
--- rt^3/trunk/src/GS/cmds/AbstractClientCmd.h 2010-12-15 19:15:50 UTC (rev
41632)
+++ rt^3/trunk/src/GS/cmds/AbstractClientCmd.h 2010-12-15 19:31:33 UTC (rev
41633)
@@ -1,56 +0,0 @@
-/* A B S T R A C T C L I E N T C M D . H
- * BRL-CAD
- *
- * Copyright (c) 2010 United States Government as represented by
- * the U.S. Army Research Laboratory.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this file; see the file named COPYING for more
- * information.
- */
-/** @file AbstractClientCmd.h
- * AbstractClientCmd.h
- *
- */
-
-#ifndef __ABSTRACTCLIENTCMD_H__
-#define __ABSTRACTCLIENTCMD_H__
-
-#include <QtCore/QString>
-
-class AbstractClientCmd {
-public:
- virtual ~AbstractClientCmd();
- bool exec(QString args[]);
-
- QString getCmd();
-protected:
- AbstractClientCmd(QString cmd);
- AbstractClientCmd(AbstractClientCmd* acCmd);
-
- virtual bool _exec(QString args[]) = 0;
-
-private:
- QString cmd;
-};
-
-#endif /* __ABSTRACTCLIENTCMD_H__ */
-
-/*
- * Local Variables:
- * tab-width: 8
- * mode: C
- * indent-tabs-mode: t
- * c-file-style: "stroustrup"
- * End:
- * ex: shiftwidth=4 tabstop=8
- */
Deleted: rt^3/trunk/src/GS/cmds/ClientCmdRegistry.h
===================================================================
--- rt^3/trunk/src/GS/cmds/ClientCmdRegistry.h 2010-12-15 19:15:50 UTC (rev
41632)
+++ rt^3/trunk/src/GS/cmds/ClientCmdRegistry.h 2010-12-15 19:31:33 UTC (rev
41633)
@@ -1,75 +0,0 @@
-/* C L I E N T C M D R E G I S T R Y . H
- * BRL-CAD
- *
- * Copyright (c) 2010 United States Government as represented by
- * the U.S. Army Research Laboratory.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this file; see the file named COPYING for more
- * information.
- */
-/** @file ClientCmdRegistry.h
- *
- * Brief description
- *
- */
-
-
-#ifndef __CLIENTCMDREGISTRY_H__
-#define __CLIENTCMDREGISTRY_H__
-
-#include "AbstractClientCmd.h"
-#include "Logger.h"
-
-#include <QtCore/QString>
-#include <QtCore/QMap>
-#include <QtCore/QList>
-#include <QtCore/QMutex>
-
-class ClientCmdRegistry
-{
-public:
- static ClientCmdRegistry* getInstance();
- virtual ~ClientCmdRegistry();
-
- bool registerCmd(AbstractClientCmd* cmd);
- AbstractClientCmd* getCmd(QString cmd);
-
- QList<QString>* getListOfCmds();
-
-private:
- static ClientCmdRegistry* pInstance;
- ClientCmdRegistry();
-
- static void registerInternalCmds();
-
- Logger* log;
-
- QMutex mapLock;
- QMap<QString,AbstractClientCmd*>* cmdMap;
-
- /* Disable copy cstr and =operator */
- ClientCmdRegistry(ClientCmdRegistry const&){};
- ClientCmdRegistry& operator=(ClientCmdRegistry const&){};
-};
-
-#endif /* __CLIENTCMDREGISTRY_H__ */
-
-/*
- * Local Variables:
- * tab-width: 8
- * mode: C
- * indent-tabs-mode: t
- * c-file-style: "stroustrup"
- * End:
- * ex: shiftwidth=4 tabstop=8
- */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits