CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
dummy_classes.h
1
2#ifndef __dummy_classes_h__
3#define __dummy_classes_h__
4
5#include "system/event.h"
6#include "system/eventargs.h"
7#include "system/eventhandler.h"
8#include "system/uri.h"
9#include "system/io/text_writer.h"
10#include "system/collections/dictionary.h"
11#include <system/component_model/component.h>
12#include <system/runtime/serialization/iserializable.h>
13#include <net/http_status_code.h>
14#include <net/web_response.h>
15#include <net/http_web_response.h>
16#include <net/http_web_request.h>
17#include <net/file_web_response.h>
18#include <net/file_web_request.h>
19
20#include "fwd.h"
21
22namespace System {
23 namespace Web {
24
26 class HttpRequest;
28 class HttpResponse;
29
35 class ASPOSECPP_SHARED_CLASS HttpContext : public Object
36 {
37 public:
39 static System::SharedPtr<HttpContext> get_Current(){ throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
41 static void set_Current(const System::SharedPtr<HttpContext>& context){ ASPOSE_UNUSED(context); throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
43 System::SharedPtr<HttpRequest> get_Request(){ throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
44 };
45
51 class ASPOSECPP_SHARED_CLASS HttpResponse : public Object
52 {
53 public:
55 HttpResponse(const System::SharedPtr<System::IO::TextWriter>& writer) : Object() { ASPOSE_UNUSED(writer); }
57 void AddHeader(const String& name, const String& value){ ASPOSE_UNUSED(name); ASPOSE_UNUSED(value); throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
59 void BinaryWrite(const System::ArrayPtr<uint8_t>& buffer){ ASPOSE_UNUSED(buffer); throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
61 void Clear(){ throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
63 void ClearContent(){ throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
65 void ClearHeaders(){ throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
67 void End(){ throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
69 SharedPtr<System::IO::Stream> get_OutputStream(){ throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
71 void set_ContentType(const String& value){ ASPOSE_UNUSED(value); throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
72 };
73
74 namespace UI {
75 namespace WebControls {
76
82 class ASPOSECPP_SHARED_CLASS DataGrid : public Object
83 {
84 public:
87 };
88 }
89 }
90
91 }
92
93 namespace Net {
94
95 class WebHeaderCollection;
96 class HttpWebResponse;
97 class FileWebResponse;
98
104 class ASPOSECPP_SHARED_CLASS FtpWebResponse : public WebResponse
105 {
107 typedef FtpWebResponse ThisType;
110
112 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
113
115 RTTI_INFO(System::Net::FtpWebResponse, ThisTypeBaseTypesInfo)
116
117 public:
118
120 int64_t get_ContentLength() override { throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
122 System::String get_ContentType() override { throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
124 System::SharedPtr<WebHeaderCollection> get_Headers() override { throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
126 System::SharedPtr<System::Uri> get_ResponseUri() override { throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
127
129 void Close() override { throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
131 System::SharedPtr<System::IO::Stream> GetResponseStream() override { throw NotImplementedException(ASPOSE_CURRENT_FUNCTION); }
132 };
133
134 class ICredentials;
135 class WebRequest;
136 class HttpWebRequest;
137 class FileWebRequest;
138
142 class ASPOSECPP_SHARED_CLASS FtpWebRequest : public System::Net::WebRequest
143 {
145 typedef FtpWebRequest ThisType;
148
149
151 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
152
154 RTTI_INFO(System::Net::FtpWebRequest, ThisTypeBaseTypesInfo);
155 };
156
162 class ServicePoint;
163
164 } // namespace Net
165} // namespace System
166
167#endif
Defines method that releases resources owned by the current object. Objects of this class should only...
Definition: idisposable.h:30
Implements a File Transfer Protocol (FTP) client. Dummy class making it possible linking translated c...
Definition: dummy_classes.h:143
Dummy class making it possible linking translated code with FtpWebResponse references,...
Definition: dummy_classes.h:105
System::SharedPtr< System::IO::Stream > GetResponseStream() override
Not implemented.
Definition: dummy_classes.h:131
System::String get_ContentType() override
Not implemented.
Definition: dummy_classes.h:122
System::SharedPtr< WebHeaderCollection > get_Headers() override
Not implemented.
Definition: dummy_classes.h:124
System::SharedPtr< System::Uri > get_ResponseUri() override
Not implemented.
Definition: dummy_classes.h:126
int64_t get_ContentLength() override
RTTI info.
Definition: dummy_classes.h:120
void Close() override
Not implemented.
Definition: dummy_classes.h:129
Provides HTTP connection management. Objects of this class should only be allocated using System::Mak...
Definition: service_point.h:24
Represents a web request. Objects of this class should only be allocated using System::MakeObject() f...
Definition: web_request.h:31
Represents a web response. Objects of this class should only be allocated using System::MakeObject() ...
Definition: web_response.h:20
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Dummy class making it possible linking translated code with HttpContext references,...
Definition: dummy_classes.h:36
static System::SharedPtr< HttpContext > get_Current()
Not implemented.
Definition: dummy_classes.h:39
System::SharedPtr< HttpRequest > get_Request()
Not implemented.
Definition: dummy_classes.h:43
static void set_Current(const System::SharedPtr< HttpContext > &context)
Not implemented.
Definition: dummy_classes.h:41
Dummy class making it possible linking translated code with HttpResponse references,...
Definition: dummy_classes.h:52
void AddHeader(const String &name, const String &value)
Not implemented.
Definition: dummy_classes.h:57
void End()
Not implemented.
Definition: dummy_classes.h:67
void set_ContentType(const String &value)
Not implemented.
Definition: dummy_classes.h:71
void BinaryWrite(const System::ArrayPtr< uint8_t > &buffer)
Not implemented.
Definition: dummy_classes.h:59
void ClearContent()
Not implemented.
Definition: dummy_classes.h:63
void Clear()
Not implemented.
Definition: dummy_classes.h:61
void ClearHeaders()
Not implemented.
Definition: dummy_classes.h:65
HttpResponse(const System::SharedPtr< System::IO::TextWriter > &writer)
Not implemented.
Definition: dummy_classes.h:55
SharedPtr< System::IO::Stream > get_OutputStream()
Not implemented.
Definition: dummy_classes.h:69
Dummy class making it possible linking translated code with DataGrid references, but not executing it...
Definition: dummy_classes.h:83
SharedPtr< DataGrid > ptr
Self pointer type.
Definition: dummy_classes.h:86
Definition: db_command.h:9