00001 #ifndef GRAPH_H
00002 #define GRAPH_H
00003
00004 #include <oh/core/Object.h>
00005 #include <oh/core/Axis.h>
00006 #include <string>
00007 #include <vector>
00008
00009
00010
00011
00012
00013
00014 namespace oh
00015 {
00023 class Graph : public Object {
00024 public:
00025 enum ErrorStyle {None,Symmetric,Asymmetric,AsymBent};
00026
00027
00031 std::string title;
00032
00036 unsigned long entries;
00037
00041 std::vector<double> errors;
00042
00046 ErrorStyle errorStyle;
00047
00051 std::vector<double> points;
00052
00056 std::vector<Axis> axes;
00057
00058
00059 static const ISType & type() {
00060 static const ISType type_ = Graph( ).ISInfo::type();
00061 return type_;
00062 }
00063
00064 Graph( )
00065 : Object( "Graph" )
00066 {
00067 initialize();
00068 }
00069
00070 ~Graph(){
00071
00072
00073
00074
00075 }
00076
00077 protected:
00078 Graph( const std::string & type )
00079 : Object( type )
00080 {
00081 initialize();
00082 }
00083
00084 void publishGuts( ISostream & out ){
00085 Object::publishGuts( out );
00086 out << title << entries << errors << errorStyle << points << axes;
00087 }
00088
00089 void refreshGuts( ISistream & in ){
00090 Object::refreshGuts( in );
00091 in >> title >> entries >> errors >> errorStyle >> points >> axes;
00092 }
00093
00094 private:
00095 void initialize()
00096 {
00097 errorStyle = None;
00098
00099
00100
00101
00102 }
00103
00104
00105
00106
00107
00108 };
00109
00110
00111
00112
00113 }
00114
00115 #endif // GRAPH_H