00001 #ifndef LOW_LEVEL_METHODS_GROUP 00002 #define LOW_LEVEL_METHODS_GROUP 00003 00004 /*****************************************************************************\ 00005 * * 00006 * Name : low_level_methods * 00007 * Author : Chris Koeritz * 00008 * * 00009 ******************************************************************************* 00010 * Copyright (c) 2007-$now By Author. This program is free software; you can * 00011 * redistribute it and/or modify it under the terms of the GNU General Public * 00012 * License as published by the Free Software Foundation; either version 2 of * 00013 * the License or (at your option) any later version. This is online at: * 00014 * http://www.fsf.org/copyleft/gpl.html * 00015 * Please send any updates to: fred@gruntose.com * 00016 \*****************************************************************************/ 00017 00018 #define MANAGED_COMPILATION 00019 #include <basis/portable.h> 00020 #undef MANAGED_COMPILATION 00021 #include <basis/utility.h> 00022 #include <hoople_api/string_conversions.h> 00023 #include <opsystem/directory.h> 00024 #include <opsystem/path_configuration.h> 00025 00026 namespace hoople_api { 00027 00029 public ref class low_level_methods 00030 { 00031 public: 00032 00033 System::String ^make_logfile_name(System::String ^to_modify) 00035 00039 { 00040 istring mod = string_conversions::to_istring(to_modify); 00041 istring to_return = path_configuration::make_logfile_name(mod); 00042 return string_conversions::to_mstring(to_return); 00043 } 00044 00045 System::String ^make_allusers_path(System::String ^to_modify) 00047 00051 { 00052 istring mod = string_conversions::to_istring(to_modify); 00053 istring to_return = portable::env_string("ALLUSERSPROFILE") 00054 + "/" + software_product_name() + "/" + mod; 00055 return string_conversions::to_mstring(to_return); 00056 } 00057 00058 System::String ^timestamp() 00060 { 00061 return string_conversions::to_mstring(utility::timestamp(false, true)); 00062 } 00063 00064 }; 00065 } 00066 00067 #endif 00068
1.5.1