Commit b3c63919 authored by claes's avatar claes

*** empty log message ***

parent 61abe767
This diff is collapsed.
/* /*
* Proview $Id: opc_provider.h,v 1.8 2007-03-23 08:19:45 claes Exp $ * Proview $Id: opc_provider.h,v 1.9 2007-03-27 08:37:50 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -56,9 +56,14 @@ class opcprv_sub { ...@@ -56,9 +56,14 @@ class opcprv_sub {
class opc_provider : public co_provider { class opc_provider : public co_provider {
public: public:
opc_provider( pvd_eEnv env = pvd_eEnv_Wb) : co_provider(env), root(0), next_oix(1) { opc_provider( pvd_eEnv env = pvd_eEnv_Wb) : co_provider(env), root(0), next_oix(1),
server_state(0) {
memset( &server_state, 0, sizeof(server_state)); memset( &server_state, 0, sizeof(server_state));
} }
~opc_provider() {
for ( int i = 0; i < (int) m_list.size(); i++)
delete m_list[i];
}
virtual void object( co_procom *pcom); virtual void object( co_procom *pcom);
virtual void objectOid( co_procom *pcom, pwr_tOix oix); virtual void objectOid( co_procom *pcom, pwr_tOix oix);
virtual void objectName( co_procom *pcom, char *name, pwr_tOix poix); virtual void objectName( co_procom *pcom, char *name, pwr_tOix poix);
...@@ -97,13 +102,15 @@ public: ...@@ -97,13 +102,15 @@ public:
void get_server_state(); void get_server_state();
char *opc_provider::name_to_objectname( char *name); char *opc_provider::name_to_objectname( char *name);
void errlog( std::string* item, std::vector<s0__OPCError *>& errvect); void errlog( std::string* item, std::vector<s0__OPCError *>& errvect);
void init();
void fault();
vector<opcprv_obj> m_list; vector<opcprv_obj *> m_list;
map<pwr_tUInt32, opcprv_sub> m_sublist; map<pwr_tUInt32, opcprv_sub> m_sublist;
pwr_tOix root; pwr_tOix root;
pwr_tOix next_oix; pwr_tOix next_oix;
struct soap soap; struct soap soap;
pwr_sClass_Opc_ServerState server_state; pwr_sClass_Opc_ServerState *server_state;
}; };
#endif #endif
This diff is collapsed.
...@@ -98,6 +98,12 @@ class xsd__dateTime : public xsd__anyType ...@@ -98,6 +98,12 @@ class xsd__dateTime : public xsd__anyType
std::string __item; std::string __item;
}; };
/// Class wrapper for built-in type "xs:duration" derived from xsd__anyType
class xsd__duration : public xsd__anyType
{ public:
std::string __item;
};
/// Primitive built-in type "xs:decimal" /// Primitive built-in type "xs:decimal"
typedef std::string xsd__decimal; typedef std::string xsd__decimal;
......
/* /*
* Proview $Id: opc_utl.h,v 1.13 2007-03-23 08:19:45 claes Exp $ * Proview $Id: opc_utl.h,v 1.14 2007-03-27 08:37:50 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -79,6 +79,7 @@ typedef enum { ...@@ -79,6 +79,7 @@ typedef enum {
} opc_eDataType; } opc_eDataType;
typedef enum { typedef enum {
opc_eResultCode_S_,
opc_eResultCode_S_CLAMP, opc_eResultCode_S_CLAMP,
opc_eResultCode_S_DATAQUEUEOVERFLOW, opc_eResultCode_S_DATAQUEUEOVERFLOW,
opc_eResultCode_S_UNSUPPORTEDRATE, opc_eResultCode_S_UNSUPPORTEDRATE,
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment