Revision: 6669
          http://playerstage.svn.sourceforge.net/playerstage/?rev=6669&view=rev
Author:   jeremy_asher
Date:     2008-06-23 15:19:19 -0700 (Mon, 23 Jun 2008)

Log Message:
-----------
Option/OptionsDlg reorg 2/2

Added Paths:
-----------
    code/stage/trunk/libstage/option.hh

Added: code/stage/trunk/libstage/option.hh
===================================================================
--- code/stage/trunk/libstage/option.hh                         (rev 0)
+++ code/stage/trunk/libstage/option.hh 2008-06-23 22:19:19 UTC (rev 6669)
@@ -0,0 +1,25 @@
+#ifndef _OPTION_H_
+#define _OPTION_H_
+
+#include <string>
+
+namespace Stg {
+
+       class Option {
+       private:
+               int index;
+               std::string optName;
+               bool value;
+       public:
+               Option() { }
+               Option( int i, std::string n, bool v ) : index( i ), optName( n 
), value( v ) { }
+               Option( const Option& o ) : index( o.index ), optName( 
o.optName ), value( o.value ) { }
+               const std::string name() const { return optName; }
+               const int id() const { return index; }
+               const bool val() const { return value; }
+               void set( bool val ) { value = val; }
+       };
+
+}
+       
+#endif


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to