00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef TAO_PSDL_CODE_GEN_H
00023 #define TAO_PSDL_CODE_GEN_H
00024
00025 #include "ace/pre.h"
00026
00027 #include "psdl_export.h"
00028
00029 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00030 # pragma once
00031 #endif
00032
00033 #include "tao/IOPC.h"
00034 #include "tao/ORB.h"
00035
00036 class TAO_PSDL_Datastore;
00037
00038 class TAO_PSDL_Export TAO_PSDL_Code_Gen
00039 {
00040 public:
00041
00042 TAO_PSDL_Code_Gen (CORBA::ORB_ptr orb);
00043
00044 ~TAO_PSDL_Code_Gen (void);
00045
00046
00047
00048 int set_codec (void);
00049
00050
00051
00052 int set_name_obj_ref (const char *name,
00053 const char *string_obj_ref);
00054
00055
00056
00057 const char *get_obj_ref (const char *name);
00058
00059 private:
00060
00061
00062
00063 CORBA::OctetSeq *encode (const char *string_obj_ref);
00064
00065
00066
00067 const char *decode (const CORBA::OctetSeq &data);
00068
00069
00070 const char *file_name_;
00071
00072
00073 TAO_PSDL_Datastore *psdl_datastore_;
00074
00075
00076 CORBA::ORB_var orb_;
00077
00078
00079
00080 IOP::Codec_var codec_;
00081 };
00082
00083 #include "ace/post.h"
00084
00085 #endif