You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.9 KiB

#pragma once
#include <stdio.h>
#include <Windows.h>
#include <stdlib.h>
//#include <io.h>
#include <time.h>
#include <string>
#include <vector>
#include<algorithm>
#include <epm/epm.h>
#include <epm/epm_toolkit_tc_utils.h>
#include <ict/ict_userservice.h>
#include <tccore/item.h>
#include <ae/ae.h>
#include <tc/folder.h>
#include <tccore/aom.h>
#include <sa/sa.h>
#include <tccore/aom_prop.h>
#include <property/prop_errors.h>
#include <tccore/workspaceobject.h>
#include <tc/preferences.h>
#include <tccore//grm.h>
#include <tccore/grmtype.h>
#include <sa/am.h>
#include <cfm/cfm.h>
#include <bom/bom.h>
#include <tccore/uom.h>
#include <ps/ps.h>
#include <epm/signoff.h>
#include <fclasses/tc_date.h>
#include <objbase.h>
using namespace std;
//#include <tccore/imantype.h>
//#include <textsrv/textserver.h>
//#include <user_exits/epm_toolkit_utils.h>
//#include <ss/ss_errors.h>
//#include <direct.h>
//#include <unistd.h>
#ifdef __cplusplus
extern "C" {
#endif
#define DOFREE(obj) \
{ \
if(obj) \
{ \
MEM_free(obj); \
obj = NULL; \
} \
}
void ECHO(char* format, ...);
void CreateLogFile(char* FunctionName, char** fullname);
void CreateLogFile2(char* FunctionName, char** fullname, char* fileDir);
void WriteLog(const char* format, ...);
void WriteLog2(string value);
void CloseLog(void);
string getUUid();
void current_time(date_t* date_tag);
char* GbkToUtf8(const char* src_str);
char* Utf8ToGbk(const char* src_str);
void starTime();
logical checkIsItemRevision(tag_t objtag);
int checkIsInType(tag_t objtag, string parentType);
int getPrefStrings(const char* preference, vector<string>& pref_vec);
int Supor_create_signinfo_file(char* file_content, char* item_id, char** file_name);
int Connor_set_bypass(void* returnValue);
int Connor_close_bypass(void* returnValue);
int MT_add_release_status(void* return_data);
int uomTagSet(void* return_data);
#ifdef __cplusplus
}
#endif