gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r11394: new class for server side st


From: Rob Savoye
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11394: new class for server side storing and access of SharedObjects.
Date: Tue, 25 Aug 2009 18:29:08 -0000
User-agent: Bazaar (1.16.1)

------------------------------------------------------------
revno: 11394
committer: Rob Savoye <address@hidden>
branch nick: trunk
timestamp: Sat 2009-08-08 10:08:36 -0600
message:
  new class for server side storing and access of SharedObjects.
added:
  cygnal/serverSO.cpp
  cygnal/serverSO.h
=== added file 'cygnal/serverSO.cpp'
--- a/cygnal/serverSO.cpp       1970-01-01 00:00:00 +0000
+++ b/cygnal/serverSO.cpp       2009-08-08 16:08:36 +0000
@@ -0,0 +1,76 @@
+// rc.cpp:  "Run Command" configuration file, for Gnash.
+// 
+//   Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+// 
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+// 
+// This program 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 General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+//
+
+// This is generated by autoconf
+#ifdef HAVE_CONFIG_H
+# include "gnashconfig.h"
+#endif
+
+#include "StringPredicates.h"
+#include "log.h"
+#include "serverSO.h"
+
+#ifdef HAVE_PWD_H
+# include <pwd.h>
+#endif
+
+#include <sys/types.h>
+#include <boost/cstdint.hpp>
+
+#include <cctype>  // for toupper
+#include <string>
+#include <vector>
+#include <iostream>
+#include <fstream>
+
+using namespace std;
+using namespace gnash;
+
+/// \namespace cygnal
+///    This namespace is for all the Cygnal specific classes.
+namespace cygnal {
+
+
+ServerSO::ServerSO()
+{
+//    GNASH_REPORT_FUNCTION;
+}
+
+//Never destroy (TODO: add a destroyDefaultInstance)
+ServerSO::~ServerSO()
+{
+//    GNASH_REPORT_FUNCTION;    
+}
+
+/// \brief Dump the internal data of this class in a human readable form.
+/// @remarks This should only be used for debugging purposes.
+void
+ServerSO::dump(std::ostream& os) const
+{
+    os << endl << "Dump ServerSO:" << endl;
+
+}
+
+} // end of namespace cygnal
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+

=== added file 'cygnal/serverSO.h'
--- a/cygnal/serverSO.h 1970-01-01 00:00:00 +0000
+++ b/cygnal/serverSO.h 2009-08-08 16:08:36 +0000
@@ -0,0 +1,75 @@
+// 
+//   Copyright (C) 2009 Free Software Foundation, Inc.
+// 
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+// 
+// This program 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 General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+#ifndef __SERVERSO_H__
+#define __SERVERSO_H__
+
+// This is generated by autoconf
+#ifdef HAVE_CONFIG_H
+# include "gnashconfig.h"
+#endif
+
+#include <string>
+#include <vector>
+#include <iostream>
+
+#include "sol.h"
+#include "element.h"
+
+/// \namespace cygnal
+///
+/// This namespace is for all the Cygnal specific classes not used by
+/// anything else in Gnash.
+namespace cygnal {
+    
+/// \class cygnal::ServerSO
+///    This class handles storing SharedObject on the server side.
+///     The SOL class is used to optionally read and write a disk 
+///     file similar to the client side.
+class DSOEXPORT ServerSO : public amf::SOL
+{
+public:
+    ServerSO();
+    ~ServerSO();
+
+    /// \brief Dump the internal data of this class in a human readable form.
+    /// @remarks This should only be used for debugging purposes.
+    void dump() const { dump(std::cerr); }
+    
+    /// \overload dump(std::ostream& os) const
+    void dump(std::ostream& os) const;
+    
+};
+
+/// \brief Dump to the specified output stream.
+inline std::ostream& operator << (std::ostream& os, const ServerSO &so)
+{
+    so.dump(os);
+    return os;
+}
+
+// End of gnash namespace 
+}
+
+// __SERVERSO_H__
+#endif
+
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]