HIOUtilityHTML.h
1 // Copyright (c) Tech Soft 3D, Inc.
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 #ifndef _HIOUTILITYHTML_H
11 #define _HIOUTILITYHTML_H
12 
13 #ifdef H_PACK_8
14 #pragma pack(push)
15 #pragma pack(8)
16 #endif
17 
18 #include "HTools.h"
19 #include "HIOManager.h"
20 #include "HStream.h"
21 
30 class MVO_API HIOUtilityHTML: public HOutputHandler
31 {
32 
33 public:
34 
38  };
39 
40  virtual ~HIOUtilityHTML() {;};
41 
44  const char * GetOutputName() { return "HIOUtilityHTML"; }
45 
48  HIORegisterOutputType("html",this);
49  HIORegisterOutputType("htm",this);
50  };
51 
53  const char * GetOutputTypesString() {return "html;htm";};
54 
57 
68  HFileOutputResult FileOutputByKey(const __wchar_t * filename, HC_KEY key, HOutputHandlerOptions * options);
69 
70  HFileOutputResult FileOutputByKey(const unsigned short * filename, HC_KEY key, HOutputHandlerOptions * options){
71  H_UTF16 utf16;
72  utf16.encodedText((utf16_char const*) filename);
73  return FileOutputByKey(H_WCS(utf16).encodedText(), key, options);
74  }
75 
76  HFileOutputResult FileOutputByKey(const char * filename, HC_KEY key, HOutputHandlerOptions * options){
77  return FileOutputByKey(H_WCS(filename).encodedText(), key, options);
78  }
79 
80 };
81 
82 
83 #ifdef H_PACK_8
84 #pragma pack(pop)
85 #endif
86 
87 #endif
Definition: HIOUtilityHTML.h:30
virtual HFileOutputResult FileOutputByKey(const char *filename, HC_KEY key, HOutputHandlerOptions *options)
const char * GetOutputTypesString()
Definition: HIOUtilityHTML.h:53
const char * GetOutputName()
Definition: HIOUtilityHTML.h:44
HOutputHandlerStyle GetOutputStyle()
Definition: HIOUtilityHTML.h:56
#define HOutputOpFileOutputByKey
This HOutputHandler supports output from a segment key.
Definition: HIOManager.h:73
Specifies an HOutputHandler for a hardcopy output type.
Definition: HIOManager.h:783
HOutputHandlerStyle
Definition: HIOManager.h:778
HOutputHandler an abstract base class for model and image output.
Definition: HIOManager.h:1172
#define HIORegisterOutputType(type, output_object)
HIORegisterOutputType(type,output_object) Used by a HOutputHandler to set extension types that it han...
Definition: HIOManager.h:90
Definition: HIOManager.h:824
HIOUtilityHTML()
Definition: HIOUtilityHTML.h:36
HFileOutputResult FileOutputByKey(const unsigned short *filename, HC_KEY key, HOutputHandlerOptions *options)
Definition: HIOUtilityHTML.h:70
HFileOutputResult FileOutputByKey(const char *filename, HC_KEY key, HOutputHandlerOptions *options)
Definition: HIOUtilityHTML.h:76
void SetOutputOps(unsigned long ops)
This sets the HOutputOp.
Definition: HIOManager.h:1337
A header file containing the HIO classes for passing to HBaseView::FileInput and HBaseView::FileOutpu...
void RegisterOutputHandlerTypes()
Definition: HIOUtilityHTML.h:47